Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions.coordination.rmi

public Class RMIRemoteConnection

extends RemoteConnection
Class Inheritance
Imports
org.eclipse.persistence.exceptions.CommunicationException, org.eclipse.persistence.sessions.coordination.Command, org.eclipse.persistence.internal.sessions.coordination.RemoteConnection, java.rmi.RemoteException

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)

Field Summary

Modifier and TypeField and Description
pack-priv RMIRemoteCommandConnection
Inherited from org.eclipse.persistence.internal.sessions.coordination.RemoteConnection:
serviceId

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
executeCommand(Command command)

Implements abstract org.eclipse.persistence.internal.sessions.coordination.RemoteConnection.executeCommand.

INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM.
public Object
executeCommand(byte[] command)

Implements abstract org.eclipse.persistence.internal.sessions.coordination.RemoteConnection.executeCommand.

INTERNAL: This method invokes the remote object with the Command argument, and causes it to execute the command in the remote VM.
public RMIRemoteCommandConnection

Returns:

RMIRemoteCommandConnection connection
getConnection
()

INTERNAL Return the RemoteCommandConnection associated with this RemoteConnection

Inherited from org.eclipse.persistence.internal.sessions.coordination.RemoteConnection:
closegetServiceIdsetServiceIdtoString

Field Detail

connectionback to summary
pack-priv RMIRemoteCommandConnection connection

Constructor Detail

RMIRemoteConnectionback to summary
public RMIRemoteConnection(RMIRemoteCommandConnection connection)

Method Detail

executeCommandback to summary
public Object executeCommand(Command command) throws CommunicationException

Implements abstract org.eclipse.persistence.internal.sessions.coordination.RemoteConnection.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.

Annotations
@Override
executeCommandback to summary
public Object executeCommand(byte[] command) throws CommunicationException

Implements abstract org.eclipse.persistence.internal.sessions.coordination.RemoteConnection.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.

Annotations
@Override
getConnectionback to summary
public RMIRemoteCommandConnection getConnection()

INTERNAL Return the RemoteCommandConnection associated with this RemoteConnection

Returns:RMIRemoteCommandConnection

RMIRemoteCommandConnection connection