Purpose: Define an RMI implementation class for the remote object that can execute a remote command.
Description: This implementation class is the RMI transport version of the connection that is used by the remote command manager to send remote commands. This object just wraps the RMIRemoteCommandConnection remote object
| Modifier and Type | Field and Description |
|---|---|
| pack-priv RMIRemoteCommandConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | executeCommand(Command command)
Implements abstract org. |
| public Object | executeCommand(byte[] command)
Implements abstract org. |
| public RMIRemoteCommandConnection | Returns: RMIRemoteCommandConnection connectionINTERNAL Return the RemoteCommandConnection associated with this RemoteConnection |
| connection | back to summary |
|---|---|
| pack-priv RMIRemoteCommandConnection connection | |
| RMIRemoteConnection | back to summary |
|---|---|
| public RMIRemoteConnection(RMIRemoteCommandConnection connection) | |
| executeCommand | back to summary |
|---|---|
| public Object executeCommand(Command command) throws CommunicationException Implements abstract org. INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM. The result is currently assumed to be either null if successful, or an exception string if an exception was thrown during execution. If a RemoteException occurred then a communication problem occurred. In this case the exception will be wrapped in a CommunicationException and re-thrown.
| |
| executeCommand | back to summary |
|---|---|
| public Object executeCommand(byte[] command) throws CommunicationException Implements abstract org. INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM. The result is currently assumed to be either null if successful, or an exception string if an exception was thrown during execution. If a RemoteException occurred then a communication problem occurred. In this case the exception will be wrapped in a CommunicationException and re-thrown.
| |
| getConnection | back to summary |
|---|---|
| public RMIRemoteCommandConnection getConnection() INTERNAL Return the RemoteCommandConnection associated with this RemoteConnection
| |