public class ProfileImpl extends Profile
Take care of using different instances of this class when launching different containers/main-containers on the same JVM otherwise they would conflict!
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
bootProps |
ACCEPT_FOREIGN_AGENTS, ACLCODECS, AGENT_TAG, AGENTS, CONTAINER_NAME, DEFAULT_PORT, DETECT_MAIN, DUMP_OPTIONS, EXPORT_HOST, EXPORT_PORT, FILE_DIR, GUI, IMTP, IP_VERSION, IPV4, IPV6, LEAP_IMTP, LOCAL_HOST, LOCAL_PORT, LOCAL_SERVICE_MANAGER, LOCALHOST_CONSTANT, LOOPBACK_ADDRESS_CONSTANT, MAIN, MAIN_HOST, MAIN_PORT, MAIN_PROTO, MTPS, NO_DISPLAY, NO_MTP, PLATFORM_ID, PRIVILEDGE_LOGICAL_NAME, REMOTE_SERVICE_MANAGER_ADDRESSES, RMI_IMTP, SERVICES, STYLE_3_X, USERAUTH_KEY| Constructor and Description |
|---|
ProfileImpl()
This is equivalent to
ProfileImpl(true) |
ProfileImpl(boolean isMain)
Creates a Profile implementation with the following default configuration:
if isMain is true, then the profile is configured to launch a main-container on the localhost, RMI internal Message Transport Protocol, port number 1099, HTTP MTP. |
ProfileImpl(Properties aProp)
Creates a Profile implementation using the given properties to
configure the platform startup process.
|
ProfileImpl(java.lang.String fileName)
Create a Profile object initialized with the settings specified
in a given property file
|
ProfileImpl(java.lang.String host,
int port,
java.lang.String platformID)
This constructor creates a default Profile for launching a platform (i.e. a main container!!
|
ProfileImpl(java.lang.String host,
int port,
java.lang.String platformID,
boolean isMain)
This constructor creates a default Profile for launching a main (or non-main) container
(depending on the value of
isMain) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanProperty(java.lang.String aKey,
boolean aDefault)
Retrieve a boolean value for a configuration property.
|
Properties |
getBootProperties()
Retrieve the configuration properties as they were passed to this Profile object, i.e. without
internal initializations automatically performed by the Profile class.
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String aDefault)
Retrieve a String value from the configuration properties.
|
Properties |
getProperties()
Return the underlying properties collection.
|
List |
getSpecifiers(java.lang.String key)
Retrieve a list of Specifiers from the configuration properties.
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Assign the given value to the given property name.
|
void |
setSpecifiers(java.lang.String key,
List value)
Assign the given property value to the given property name
|
java.lang.String |
toString()
Creates a string representation of this profile.
|
compareHostNames, compareTransportAddresses, compareTransportAddresses, getDefaultNetworkName, getDefaultNetworkName, isBackupMain, isLocalHost, isMain, isMasterMainprotected Properties bootProps
public ProfileImpl(Properties aProp)
aProp - The names and values of the configuration properties
to use.public ProfileImpl(boolean isMain)
public ProfileImpl()
ProfileImpl(true)public ProfileImpl(java.lang.String fileName)
throws ProfileException
ProfileExceptionpublic ProfileImpl(java.lang.String host,
int port,
java.lang.String platformID)
host - is the name of the host where the main-container should
be listen to. A null value means use the default (i.e. localhost)port - is the port number where the main-container should be
listen
for other containers. A negative value should be used for using
the default port number.platformID - is the symbolic name of the platform, if
different from default. A null value means use the default
(i.e. localhost)public ProfileImpl(java.lang.String host,
int port,
java.lang.String platformID,
boolean isMain)
isMain)host - is the name of the host where the main-container should
be listen to. A null value means use the default (i.e. localhost)port - is the port number where the main-container should be
listen
for other containers. A negative value should be used for using
the default port number.platformID - is the symbolic name of the platform, if
different from default. A null value means use the default
(i.e. localhost)isMain - if isMain is false, then the profile is configured to launch
a remote container, if true a main-containerpublic Properties getProperties()
public Properties getBootProperties()
getBootProperties in class Profilepublic void setParameter(java.lang.String key,
java.lang.String value)
setParameter in class Profilekey - is the property namevalue - is the property valuepublic void setSpecifiers(java.lang.String key,
List value)
setSpecifiers in class Profilekey - is the property namevalue - is the property valuepublic java.lang.String getParameter(java.lang.String key,
java.lang.String aDefault)
aDefault is returned.getParameter in class Profilekey - The key identifying the parameter to be retrieved
among the configuration properties.aDefault - The value that is returned if the specified
key is not foundpublic List getSpecifiers(java.lang.String key) throws ProfileException
getSpecifiers in class Profilekey - The key identifying the list of Specifires to be retrieved
among the configuration properties.ProfileExceptionpublic boolean getBooleanProperty(java.lang.String aKey,
boolean aDefault)
getBooleanProperty in class Profilekey - The key identifying the parameter to be retrieved
among the configuration properties.aDefault - The value to return when there is no property
set for the given key, or its value cannot be converted to a
boolean value.public java.lang.String toString()
(profile name1=value1 name2=value2 ... )
toString in class java.lang.Object