public class PlatformJadeConfig
extends java.lang.Object
implements java.io.Serializable
PlatformJadeConfig pjc = new PlatformJadeConfig();
pjc.setLocalPort(1099);
pjc.addService(PlatformJadeConfig.SERVICE_AgentGUI_LoadService);
pjc.addService(PlatformJadeConfig.SERVICE_AgentGUI_SimulationService);
pjc.addService(PlatformJadeConfig.SERVICE_NotificationService);
Profile profile = pjc.getNewInstanceOfProfilImpl();
Modifier and Type | Class and Description |
---|---|
static class |
PlatformJadeConfig.MTP_Creation
The enumeration MTP_Creation describes the possibilities, how the MTP-address can be configured.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MTP_IP_AUTO_Config |
static java.lang.String |
SERVICE_AddressNotificationService |
static java.lang.String |
SERVICE_AgentGUI_LoadService |
static java.lang.String |
SERVICE_AgentGUI_SimulationService |
static java.lang.String |
SERVICE_AgentManagementService |
static java.lang.String |
SERVICE_AgentMobilityService |
static java.lang.String |
SERVICE_BEManagementService |
static java.lang.String |
SERVICE_DebugService |
static java.lang.String |
SERVICE_FaultRecoveryService |
static java.lang.String |
SERVICE_InterPlatformMobilityService |
static java.lang.String |
SERVICE_MainReplicationService |
static java.lang.String |
SERVICE_MessagingService |
static java.lang.String |
SERVICE_NotificationService |
static java.lang.String |
SERVICE_PersistentDeliveryService |
static java.lang.String |
SERVICE_TopicManagementService |
static java.lang.String |
SERVICE_UDPNodeMonitoringServ |
Constructor and Description |
---|
PlatformJadeConfig()
Default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addService(java.lang.String serviceClassReference)
Can be used to add a class reference to an extended JADE-BaseService.
|
static java.lang.String |
getAutoServiceTextAddition()
This method returns the TextAddition if a Service is an automatically starting service of JADE.
|
java.lang.String |
getKeyStoreFile()
Gets the KeyStoreFile.
|
java.lang.String |
getKeyStoreFileInternal()
Return the key store file internal, which means without security path.
|
java.lang.String |
getKeyStorePassword()
Gets the KeyStorePassword.
|
java.lang.String |
getKeyStorePasswordEncrypted()
Gets the KeyStorePasswordEncrypted.
|
javax.swing.DefaultListModel<java.lang.String> |
getListModelServices()
Gets the list model services.
|
java.lang.Integer |
getLocalPort()
Returns the current Port which is configured for a JADE-Container.
|
java.lang.Integer |
getLocalPortMTP()
Returns the current Port which is configured for the MTP of the JADE main container.
|
PlatformJadeConfig.MTP_Creation |
getMtpCreation()
Returns how the MTP settings have to be created.
|
java.lang.String |
getMtpIpAddress()
Returns the MTP IP-address.
|
GlobalInfo.MtpProtocol |
getMtpProtocol()
Gets the MTP Protocol.
|
jade.core.ProfileImpl |
getNewInstanceOfProfilImpl()
This Method returns a new Instance of
ProfileImpl that is used to start JADE-Container. |
Project |
getProject()
Returns the current project.
|
java.util.ArrayList<java.lang.String> |
getServiceList()
Returns the current list.
|
java.lang.String |
getServiceListArgument()
This method walks through the HashSet of configured Services and returns them
as a String separated with a semicolon (';').
|
java.lang.String |
getTrustStoreFile()
Gets the TrustStoreFile.
|
java.lang.String |
getTrustStoreFileInternal()
Return the trust store file internal, which means without security path.
|
java.lang.String |
getTrustStorePassword()
Gets the TrustStorePassword.
|
java.lang.String |
getTrustStorePasswordEncrypted()
Gets the trust store password encrypted.
|
static boolean |
isAutoService(java.lang.String serviceReference)
Returns if a service generally starts while JADE is starting.
|
boolean |
isSkipUserRequestForJadeStart()
Checks if is skip user request for jade start.
|
void |
removeAllServices()
This method will remove all Services from the current Profile.
|
void |
removeService(java.lang.String serviceClassReference)
Can be used to remove a class reference to an extended JADE-BaseService.
|
void |
setKeyStoreFile(java.lang.String neKeyStoreFile)
Sets the KeyStoreFile.
|
void |
setKeyStorePassword(java.lang.String keyStorePassword)
Sets the KeyStorePassword.
|
void |
setKeyStorePasswordEncrypted(java.lang.String keyStorePasswordEncrypted)
Sets the KeyStorePasswordEncrypted.
|
void |
setLocalPort(int port2Use)
With this class the LocalPort, which will be used from a JADE-Container can be set.
|
void |
setLocalPortMTP(java.lang.Integer newMTPport)
Sets the use local port to use for the JADE MTP
|
void |
setMtpCreation(PlatformJadeConfig.MTP_Creation mtpCreation)
Sets how the MTP settings have to be created.
|
void |
setMtpIpAddress(java.lang.String mtpIpAddress)
Sets the MTP IP-address.
|
void |
setMtpProtocol(GlobalInfo.MtpProtocol mtpProtool)
Sets the MTP Protocol.
|
void |
setProject(Project project)
Sets the current project.
|
void |
setSkipUserRequestForJadeStart(boolean skipUserRequestForJadeStart)
Sets the skip user request for jade start.
|
void |
setTrustStoreFile(java.lang.String newTrustStoreFile)
Sets the TrustStoreFile.
|
void |
setTrustStorePassword(java.lang.String trustStorePassword)
Sets the TrustStorePassword.
|
void |
setTrustStorePasswordEncrypted(java.lang.String trustStorePasswordEncrypted)
Sets the TrustStorePasswordEncrypted.
|
java.lang.String |
toString()
This Method returns a String which shows the current
configuration of this instance.
|
public static java.lang.String MTP_IP_AUTO_Config
public static final java.lang.String SERVICE_MessagingService
public static final java.lang.String SERVICE_AgentManagementService
public static final java.lang.String SERVICE_AgentMobilityService
public static final java.lang.String SERVICE_NotificationService
public static final java.lang.String SERVICE_MainReplicationService
public static final java.lang.String SERVICE_FaultRecoveryService
public static final java.lang.String SERVICE_AddressNotificationService
public static final java.lang.String SERVICE_TopicManagementService
public static final java.lang.String SERVICE_PersistentDeliveryService
public static final java.lang.String SERVICE_UDPNodeMonitoringServ
public static final java.lang.String SERVICE_BEManagementService
public static final java.lang.String SERVICE_DebugService
public static final java.lang.String SERVICE_AgentGUI_LoadService
public static final java.lang.String SERVICE_AgentGUI_SimulationService
public static final java.lang.String SERVICE_InterPlatformMobilityService
public PlatformJadeConfig()
public Project getProject()
public void setProject(Project project)
project
- the new projectpublic static java.lang.String getAutoServiceTextAddition()
public static boolean isAutoService(java.lang.String serviceReference)
serviceReference
- the service referencepublic jade.core.ProfileImpl getNewInstanceOfProfilImpl()
ProfileImpl
that is used to start JADE-Container.public java.util.ArrayList<java.lang.String> getServiceList()
public void addService(java.lang.String serviceClassReference)
serviceClassReference
- the service class referencepublic void removeService(java.lang.String serviceClassReference)
serviceClassReference
- the service class referencepublic void removeAllServices()
public java.lang.String getServiceListArgument()
public void setSkipUserRequestForJadeStart(boolean skipUserRequestForJadeStart)
skipUserRequestForJadeStart
- the new skip user request for jade startpublic boolean isSkipUserRequestForJadeStart()
public void setLocalPort(int port2Use)
port2Use
- the new local portpublic java.lang.Integer getLocalPort()
public void setLocalPortMTP(java.lang.Integer newMTPport)
newMTPport
- the new MTP port to usepublic java.lang.Integer getLocalPortMTP()
public void setMtpCreation(PlatformJadeConfig.MTP_Creation mtpCreation)
mtpCreation
- the new PlatformJadeConfig.MTP_Creation
public PlatformJadeConfig.MTP_Creation getMtpCreation()
public void setMtpIpAddress(java.lang.String mtpIpAddress)
mtpIpAddress
- the new MTP IP-addresspublic java.lang.String getMtpIpAddress()
public void setMtpProtocol(GlobalInfo.MtpProtocol mtpProtool)
mtpProtool
- the new MTP Protocolpublic GlobalInfo.MtpProtocol getMtpProtocol()
public void setKeyStoreFile(java.lang.String neKeyStoreFile)
neKeyStoreFile
- the new KeyStoreFilepublic java.lang.String getKeyStoreFile()
public java.lang.String getKeyStoreFileInternal()
public void setKeyStorePassword(java.lang.String keyStorePassword)
keyStorePassword
- the new KeyStorePasswordpublic java.lang.String getKeyStorePassword()
public void setKeyStorePasswordEncrypted(java.lang.String keyStorePasswordEncrypted)
keyStorePasswordEncrypted
- the KeyStorePasswordEncryptedpublic java.lang.String getKeyStorePasswordEncrypted()
public void setTrustStoreFile(java.lang.String newTrustStoreFile)
newTrustStoreFile
- the new TrustStoreFilepublic java.lang.String getTrustStoreFile()
public java.lang.String getTrustStoreFileInternal()
public void setTrustStorePassword(java.lang.String trustStorePassword)
trustStorePassword
- the new TrustStorePasswordpublic java.lang.String getTrustStorePassword()
public java.lang.String getTrustStorePasswordEncrypted()
public void setTrustStorePasswordEncrypted(java.lang.String trustStorePasswordEncrypted)
trustStorePasswordEncrypted
- the new TrustStorePasswordEncryptedpublic javax.swing.DefaultListModel<java.lang.String> getListModelServices()
public java.lang.String toString()
toString
in class java.lang.Object