Purpose: Define an abstract class for the remote object that can execute a remote command using different transport protocols.
Description: This abstract class represents the remote object that is used by the remote command manager to send remote commands. The underlying transport mechanism is transparently implemented by the transport subclass implementations.
| Modifier and Type | Field and Description |
|---|---|
| protected ServiceId | serviceId
The service on the receiving end of this connection |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public abstract Object | |
| public abstract Object | |
| public ServiceId | |
| public void | |
| public String |
| serviceId | back to summary |
|---|---|
| protected ServiceId serviceId The service on the receiving end of this connection | |
| RemoteConnection | back to summary |
|---|---|
| protected RemoteConnection() Default constructor. | |
| close | back to summary |
|---|---|
| public void close() INTERNAL: cleanup whatever is necessary. Invoked when the TransportManager discard connections. | |
| executeCommand | back to summary |
|---|---|
| public abstract Object executeCommand(Command command) throws CommunicationException INTERNAL: Execute the remote command. The result of execution is returned. | |
| executeCommand | back to summary |
|---|---|
| public abstract Object executeCommand(byte[] command) throws CommunicationException INTERNAL: Execute the remote command. The result of execution is returned. | |
| getServiceId | back to summary |
|---|---|
| public ServiceId getServiceId() INTERNAL: Return the service info of the receiving service | |
| setServiceId | back to summary |
|---|---|
| public void setServiceId(ServiceId newServiceId) INTERNAL: Set the service info of the receiving service | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |