|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--com.ls.lars.communication.ClientSynchronization
This class is used to connect to other lars platform. It is the client side of the lars platform sychronization.
| Field Summary | |
protected String |
revisionInformation
revision information string, managed by our version control system. |
| Constructor Summary | |
ClientSynchronization(String remoteIP,
String remoteID,
int remotePort,
String agentMessageRouterName,
String homePlatform,
ILogger logger,
Map remoteConnectionParameters)
Constructor which builds the communication part for the messenger of the platform synchronization. |
|
| Method Summary | |
void |
closeMessengerConnection()
Method closes given connections to remote platforms actively by calling closeConnection() of the messenger. |
static void |
closePlatformConnection(String platformMessengerName)
Method closes given connections to remote platforms actively and removes the Messenger from the MessageRouter. |
static boolean |
connectionStatus(String platformMessengerName,
String platformConnectionType,
ILogger logger)
Method checks the connection status of an messenger. |
void |
makeJMSConnection(int connectionTimeout)
Method makes an platform connection using a JMSMessenger. |
void |
makeJSecureSocketConnection(int connectionTimeout,
String agentName,
int authenticationTimeout)
Method makes an platform connection using a JSecureSocketMessenger. |
void |
makeJSocketConnection(int connectionTimeout)
Method makes an platform connection using a JSocketMessenger. |
void |
makeRMIConnection(int connectionTimeout)
Method makes an platform connection using a RMIMessenger. |
void |
makeSocketConnection(int connectionTimeout)
Method makes an platform connection using a SocketMessenger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String revisionInformation
| Constructor Detail |
public ClientSynchronization(String remoteIP,
String remoteID,
int remotePort,
String agentMessageRouterName,
String homePlatform,
ILogger logger,
Map remoteConnectionParameters)
remoteIP - IP address of the remote platform.remoteID - Lars platform ID of the remote platform.remotePort - Port of the remote platform.agentMessageRouterName - Name of the agent message router.homePlatform - Platform ID of the local platform.logger - Agent log of the calling agent.remoteConnectionParameters - Connection parameters of the remote platform.| Method Detail |
public void makeSocketConnection(int connectionTimeout)
throws ConnectionException
connectionTimeout - Time to wait to establish a connection.ConnectionException - If the connection to the remote platform fails.
public void makeJSocketConnection(int connectionTimeout)
throws ConnectionException
connectionTimeout - Time to wait to establish a connection.ConnectionException - If the connection to the remote platform fails.
public void makeJSecureSocketConnection(int connectionTimeout,
String agentName,
int authenticationTimeout)
throws ConnectionException
connectionTimeout - Time to wait to establish a connection.agentName - Name of the agent.authenticationTimeout - Time to wait to check authentication.ConnectionException - If the connection to the remote platform fails or authentication fails.
public void makeRMIConnection(int connectionTimeout)
throws ConnectionException
connectionTimeout - Time to wait to establish a connection.ConnectionException - If the connection to the remote platform fails.
public void makeJMSConnection(int connectionTimeout)
throws ConnectionException
connectionTimeout - Time to wait to establish a connection.ConnectionException - If the connection to the remote platform fails.public void closeMessengerConnection()
public static void closePlatformConnection(String platformMessengerName)
platformMessengerName - Name of the associated platform messenger.
public static boolean connectionStatus(String platformMessengerName,
String platformConnectionType,
ILogger logger)
platformMessengerName - Name of the platform messenger.platformConnectionType - Type of the messenger (RMI, socket, ...).logger - Logger to use to log the messages.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||