|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Remote interface for the RMIConnector. The defined methods will be be called remote from the remote agent to send and receive messages.
RMIConnector| Method Summary | |
void |
closeConnection()
closes the remote connection that the remote object can unbind itself from rmi registry |
void |
pushMessageToRemoteSide(Message message)
sends a message to the remote side |
void |
securityCheck(String clientIpAddress,
String clientAgentName)
checks the permission to connect for the specified agent from the given IP address |
void |
setCallbackReference(IRMIConnector reference)
saves the object reference of the RMI client for callback function for the RMI server |
void |
verifyConnectionStatus()
This method will be called by the 'remote' side in order to verify the current connection status Note: This method shall return nothing, as the success of this method depends on the fact whether or not the caller catches a RemoteException. |
| Method Detail |
public void securityCheck(String clientIpAddress,
String clientAgentName)
throws ConnectionException,
RemoteException
clientIpAddress - ip address of the agentclientAgentName - name of the agentRemoteException - if remote method invocation failsConnectionException - if the security check results in forbidding the connection
public void setCallbackReference(IRMIConnector reference)
throws RemoteException
reference - object referenz to be savedRemoteException - if remote method invocation fails
public void pushMessageToRemoteSide(Message message)
throws RemoteException
message - message to be sentRemoteException - if remote method invocation fails
public void closeConnection()
throws RemoteException
RemoteException - if remote method invocation fails
public void verifyConnectionStatus()
throws RemoteException
RemoteException - if the verification of the conection fails
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||