Module org.eclipse.persistence.core
Class RMIRemoteConnection
java.lang.Object
org.eclipse.persistence.internal.sessions.coordination.RemoteConnection
org.eclipse.persistence.internal.sessions.coordination.rmi.RMIRemoteConnection
- All Implemented Interfaces:
Serializable
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
- Since:
- OracleAS TopLink 10g (9.0.4)
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.coordination.RemoteConnection
serviceId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand
(byte[] command) INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM.executeCommand
(Command command) INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM.INTERNAL Return the RemoteCommandConnection associated with this RemoteConnectionMethods inherited from class org.eclipse.persistence.internal.sessions.coordination.RemoteConnection
close, getServiceId, setServiceId, toString
-
Constructor Details
-
RMIRemoteConnection
-
-
Method Details
-
executeCommand
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.- Specified by:
executeCommand
in classRemoteConnection
- Throws:
CommunicationException
-
executeCommand
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.- Specified by:
executeCommand
in classRemoteConnection
- Throws:
CommunicationException
-
getConnection
INTERNAL Return the RemoteCommandConnection associated with this RemoteConnection- Returns:
- RMIRemoteCommandConnection connection
-