Module org.eclipse.persistence.core
Class RemoteConnection
java.lang.Object
org.eclipse.persistence.internal.sessions.coordination.RemoteConnection
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BroadcastRemoteConnection
,CORBARemoteCommandConnection
,RMIRemoteConnection
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.
- Since:
- OracleAS TopLink 10g (9.0.4)
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.INTERNAL: Return the service info of the receiving servicevoid
setServiceId
(ServiceId newServiceId) INTERNAL: Set the service info of the receiving servicetoString()
-
Field Details
-
serviceId
The service on the receiving end of this connection
-
-
Constructor Details
-
RemoteConnection
protected RemoteConnection()Default constructor.
-
-
Method Details
-
executeCommand
INTERNAL: Execute the remote command. The result of execution is returned.- Throws:
CommunicationException
-
executeCommand
INTERNAL: Execute the remote command. The result of execution is returned.- Throws:
CommunicationException
-
getServiceId
INTERNAL: Return the service info of the receiving service -
setServiceId
INTERNAL: Set the service info of the receiving service -
toString
-
close
public void close()INTERNAL: cleanup whatever is necessary. Invoked when the TransportManager discard connections.
-