public abstract class RemoteConnection extends Object implements Serializable
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.
Constructor and Description |
---|
RemoteConnection() |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL:
cleanup whatever is necessary.
|
abstract Object |
executeCommand(byte[] command)
INTERNAL:
Execute the remote command.
|
abstract Object |
executeCommand(Command command)
INTERNAL:
Execute the remote command.
|
ServiceId |
getServiceId()
INTERNAL:
Return the service info of the receiving service
|
void |
setServiceId(ServiceId newServiceId)
INTERNAL:
Set the service info of the receiving service
|
String |
toString() |
public abstract Object executeCommand(Command command) throws CommunicationException
CommunicationException
public abstract Object executeCommand(byte[] command) throws CommunicationException
CommunicationException
public ServiceId getServiceId()
public void setServiceId(ServiceId newServiceId)
public void close()
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference