|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.Profile | +--jade.core.ProfileImpl
This class allows the JADE core to retrieve configuration-dependent classes and boot parameters.
Take care of using different instances of this class when launching different containers/main-containers on the same JVM otherwise they would conflict!
Field Summary | |
static int |
DEFAULT_PORT
Default communication port number. |
static java.lang.String |
MOBILITYMGRCLASSNAME
This constant is the key of the property whose value is the class name of the mobility manager. |
Fields inherited from class jade.core.Profile |
ACLCODECS,
AGENTS,
AUTHORITY_CLASS,
CONTAINER_NAME,
FILE_DIR,
IMTP,
J2SE,
JVM,
MAIN,
MAIN_HOST,
MAIN_PORT,
MAIN_PROTO,
MAINAUTH_CLASS,
MIDP,
MTPS,
OWNER,
PASSWD_FILE,
PJAVA,
PLATFORM_ID,
POLICY_FILE,
PWD_DIALOG_CLASS,
PWD_HASH_ALGORITHM |
Constructor Summary | |
ProfileImpl()
Creates a Profile implementation with the default configuration for launching a main-container on the localhost, RMI internal Message Transport Protocol, port number 1099, iiop MTP. |
|
ProfileImpl(BasicProperties aProp)
|
|
ProfileImpl(java.lang.String host,
int port,
java.lang.String platformID)
This constructor creates a default Profile for launching a platform. |
Method Summary | |
protected jade.core.acc |
getAcc()
|
protected IMTPManager |
getIMTPManager()
|
protected jade.core.MobilityManager |
getMobilityManager()
|
protected jade.core.NotificationManager |
getNotificationManager()
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String aDefault)
Retrieve a String value from the configuration properties. |
protected jade.core.Platform |
getPlatform()
|
BasicProperties |
getProperties()
Return the underlying properties collection. |
jade.security.PwdDialog |
getPwdDialog()
|
protected jade.core.ResourceManager |
getResourceManager()
|
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()
|
void |
updatePlatformID()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int DEFAULT_PORT
public static final java.lang.String MOBILITYMGRCLASSNAME
Constructor Detail |
public ProfileImpl(BasicProperties aProp)
public ProfileImpl()
public 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 synbolic name of the platform, if
different from default. A null value means use the default
(i.e. localhost)Method Detail |
public void updatePlatformID()
public BasicProperties getProperties()
public void setParameter(java.lang.String key, java.lang.String value)
key
- is the property namevalue
- is the property valuepublic void setSpecifiers(java.lang.String key, List value)
key
- is the property namevalue
- is the property valueprotected jade.core.Platform getPlatform() throws ProfileException
protected IMTPManager getIMTPManager() throws ProfileException
protected jade.core.acc getAcc() throws ProfileException
protected jade.core.MobilityManager getMobilityManager() throws ProfileException
protected jade.core.ResourceManager getResourceManager() throws ProfileException
protected jade.core.NotificationManager getNotificationManager() throws ProfileException
public jade.security.PwdDialog getPwdDialog() throws ProfileException
public java.lang.String getParameter(java.lang.String key, java.lang.String aDefault)
key
- The key identifying the parameter to be retrieved
among the configuration properties.public List getSpecifiers(java.lang.String key) throws ProfileException
key
- The key identifying the list of Specifiers to be retrieved
among the configuration properties.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |