public abstract class Profile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPT_FOREIGN_AGENTS
This constant is the key of the property whose value (true or false)
indicates whether or not this platform accepts foreign agents i.e.
|
static java.lang.String |
ACLCODECS
This constant is the key of the property whose value contains the
list of ACLCODECSs that have to be launched at bootstrap time.
|
static java.lang.String |
AGENT_TAG
This constant is the key of the property whose value will substitute the %A wildcard
in names of all agents that will start in the local container.
|
static java.lang.String |
AGENTS
This constant is the name of the property whose value contains the
list of agents that have to be launched at bootstrap time
|
static java.lang.String |
CONTAINER_NAME
This constant is the key of the property whose value contains
the desired name of the container.
|
static int |
DEFAULT_PORT |
static java.lang.String |
DETECT_MAIN
This constant is the name of the property whose Boolean value
tells whether to activate the automatic main container detection mechanism.
|
static java.lang.String |
DUMP_OPTIONS
This constant is the name of the property whose Boolean value
tells whether startup options should be dumped.
|
static java.lang.String |
EXPORT_HOST
This constant is the name or address of the host that other containers will have to use
to contact this container
|
static java.lang.String |
EXPORT_PORT
This constant is the port that other containers will have to use
to contact this container
|
static java.lang.String |
FILE_DIR
This constant is the key of the property whose value contains
the name of the directory where all the files generated by JADE
should be put.
|
static java.lang.String |
GUI |
static java.lang.String |
IMTP
This constant is the key of the property whose value
identifies the IMTP Manager to be created by ProfileImpl
|
static java.lang.String |
IP_VERSION
This constant is the key of the property whose value contains
the version of IP address to use.
|
static int |
IPV4 |
static int |
IPV6 |
static java.lang.String |
LEAP_IMTP |
static java.lang.String |
LOCAL_HOST
This constant is the name of the property whose value contains
the host name the container must bind on.
|
static java.lang.String |
LOCAL_PORT
This constant is the name of the TCP port the container node must
listen to for incoming IMTP messages.
|
static java.lang.String |
LOCAL_SERVICE_MANAGER
This constant is the name of the property whose Boolean value
tells whether a local Service Manager is exported by this
container (only when using JADE support for fault-tolerant
platform configurations).
|
static java.lang.String |
LOCALHOST_CONSTANT |
static java.lang.String |
LOOPBACK_ADDRESS_CONSTANT |
static java.lang.String |
MAIN
This constant is the name of the property whose value contains a
boolean indicating if this is the Main Container or a peripheral
container.
|
static java.lang.String |
MAIN_HOST
This constant is the name of the property whose value is the name
(or the IP address) of the network host where the JADE Main
Container is running.
|
static java.lang.String |
MAIN_PORT
This constant is the name of the property whose value contains an
integer representing the port number where the Main Container is
listening for container registrations.
|
static java.lang.String |
MAIN_PROTO
This constant is the name of the property whose value is a String
indicating the protocol to use to connect to the Main Container.
|
static java.lang.String |
MTPS
This constant is the key of the property whose value contains the
list of MTPs that have to be launched at bootstrap time.
|
static java.lang.String |
NO_DISPLAY
This constant, when set to
true tells the JADE runtime that it will be executed
in an environment with no display available. |
static java.lang.String |
NO_MTP |
static java.lang.String |
PLATFORM_ID
This constant is the name of the property whose value contains
the unique platform ID of a JADE platform.
|
static java.lang.String |
PRIVILEDGE_LOGICAL_NAME
This constant is the name of the property whose value (true or false) instructs
JADE to try to use host names instead of IP addresses in intra-platform communication.
|
static java.lang.String |
REMOTE_SERVICE_MANAGER_ADDRESSES
This constant is the name of the property whose value contains the
list of addresses through which the platform Service
Manager can be reached.
|
static java.lang.String |
RMI_IMTP |
static java.lang.String |
SERVICES
This constants is the name of the property whose value contains
the list of kernel-level services that have to be launched at
bootstrap time
|
static java.lang.String |
STYLE_3_X |
static java.lang.String |
USERAUTH_KEY
This constant is the name of the property whose value contains
the user authentication type to be used to login to the JADE platform.
|
Constructor and Description |
---|
Profile() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareHostNames(java.lang.String host1,
java.lang.String host2)
Compares two host names/addresses regardless of whether they include domain or not.
|
static boolean |
compareTransportAddresses(java.lang.String addr1,
java.lang.String addr2,
IMTPManager imtpManager)
Compares two stringified transport addresses.
|
static boolean |
compareTransportAddresses(jade.mtp.TransportAddress ta1,
jade.mtp.TransportAddress ta2) |
abstract boolean |
getBooleanProperty(java.lang.String key,
boolean aDefault)
Retrieve a boolean value for a configuration property.
|
abstract 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.
|
static java.lang.String |
getDefaultNetworkName() |
static java.lang.String |
getDefaultNetworkName(boolean priviledgeLogicalName) |
abstract java.lang.String |
getParameter(java.lang.String key,
java.lang.String aDefault)
Retrieve a String value from the configuration properties.
|
abstract List |
getSpecifiers(java.lang.String key)
Retrieve a list of Specifiers from the configuration properties.
|
boolean |
isBackupMain()
Provides a boolean indication about whether or not the container using this Profile
is a Backup Main Container.
|
static boolean |
isLocalHost(java.lang.String host)
Check whether or not a given host name or address corresponds to a local network interface
|
boolean |
isMain()
Provides a boolean indication about whether or not the container using this Profile
is a Main Container.
|
boolean |
isMasterMain()
Provides a boolean indication about whether or not the container using this Profile
is the Master Main Container.
|
abstract void |
setParameter(java.lang.String key,
java.lang.String value)
Assign the given value to the given property name.
|
abstract void |
setSpecifiers(java.lang.String key,
List value)
Assign the given value to the given property name.
|
public static final java.lang.String MAIN
public static final java.lang.String MAIN_PROTO
public static final java.lang.String MAIN_HOST
public static final java.lang.String MAIN_PORT
public static final java.lang.String DETECT_MAIN
true
on Main Containers and false
on peripheral containerspublic static final java.lang.String PRIVILEDGE_LOGICAL_NAME
public static final java.lang.String LOCAL_HOST
public static final java.lang.String LOCAL_PORT
public static final java.lang.String EXPORT_HOST
public static final java.lang.String EXPORT_PORT
public static final java.lang.String GUI
public static final java.lang.String LOCAL_SERVICE_MANAGER
public static final java.lang.String DUMP_OPTIONS
public static final java.lang.String NO_DISPLAY
true
tells the JADE runtime that it will be executed
in an environment with no display available.public static final java.lang.String PLATFORM_ID
public static final java.lang.String USERAUTH_KEY
public static final java.lang.String AGENTS
public static final java.lang.String SERVICES
public static final java.lang.String REMOTE_SERVICE_MANAGER_ADDRESSES
public static final java.lang.String MTPS
getSpecifiers(MTPS)
method.
public static final java.lang.String NO_MTP
public static final java.lang.String IMTP
public static final java.lang.String CONTAINER_NAME
public static final java.lang.String AGENT_TAG
public static final java.lang.String ACLCODECS
getSpecifiers(ACLCODECS)
method.
public static final java.lang.String ACCEPT_FOREIGN_AGENTS
public static final java.lang.String STYLE_3_X
public static final java.lang.String FILE_DIR
public static final java.lang.String IP_VERSION
public static final int IPV4
public static final int IPV6
public static final int DEFAULT_PORT
public static final java.lang.String LOCALHOST_CONSTANT
public static final java.lang.String LOOPBACK_ADDRESS_CONSTANT
public static final java.lang.String LEAP_IMTP
public static final java.lang.String RMI_IMTP
public abstract Properties getBootProperties()
public abstract 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.aDefault
- The value to return when there is no property
set for the given key.public abstract boolean getBooleanProperty(java.lang.String key, boolean aDefault)
key
- 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 abstract List getSpecifiers(java.lang.String key) throws ProfileException
key
- The key identifying the list of Specifires to be retrieved
among the configuration properties.ProfileException
public abstract void setParameter(java.lang.String key, java.lang.String value)
key
- is the property namevalue
- is the property valuepublic abstract void setSpecifiers(java.lang.String key, List value)
key
- is the property namevalue
- is the property valuepublic boolean isMain()
true
if the container using this Profile is a Main Container. false
otherwisepublic boolean isMasterMain()
true
if the container using this Profile is the Master Main Container. false
otherwisepublic boolean isBackupMain()
true
if the container using this Profile is a Backup Main Container. false
otherwisepublic static java.lang.String getDefaultNetworkName()
public static java.lang.String getDefaultNetworkName(boolean priviledgeLogicalName)
public static boolean isLocalHost(java.lang.String host)
public static boolean compareHostNames(java.lang.String host1, java.lang.String host2)
public static boolean compareTransportAddresses(java.lang.String addr1, java.lang.String addr2, IMTPManager imtpManager)
public static boolean compareTransportAddresses(jade.mtp.TransportAddress ta1, jade.mtp.TransportAddress ta2)