Class ConnectToHostCommand
- java.lang.Object
-
- org.eclipse.persistence.sessions.coordination.Command
-
- org.eclipse.persistence.internal.sessions.coordination.RCMCommand
-
- org.eclipse.persistence.internal.sessions.coordination.ConnectToHostCommand
-
- All Implemented Interfaces:
Serializable
public class ConnectToHostCommand extends RCMCommand
Purpose: This class provides an implementation of an internal RCM Command.
Description: This command is used by the RCM when it receives a connection from a remote service. It adds the connection to its own list, and then sends this command back to the remote service to establish the backward connection from the remote service to this service, accompanying the command with a reference to this own service id. The remote service can then create a connection using the service id stored in the command and add the connection to its connection list.
- Since:
- OracleAS TopLink 10g (9.0.4)
- Author:
- Steven Vo
- See Also:
TransportManager
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectToHostCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeWithRCM(RemoteCommandManager rcm)
INTERNAL: Executed on the RCM when received.void
executeWithSession(AbstractSession session)
INTERNAL: If the CommandProcessor is a EclipseLink session then this method will get executed.-
Methods inherited from class org.eclipse.persistence.internal.sessions.coordination.RCMCommand
isInternalCommand
-
Methods inherited from class org.eclipse.persistence.sessions.coordination.Command
getServiceId, setServiceId
-
-
-
-
Method Detail
-
executeWithRCM
public void executeWithRCM(RemoteCommandManager rcm)
INTERNAL: Executed on the RCM when received. Just add the remote object reference to the connection list.- Specified by:
executeWithRCM
in classRCMCommand
-
executeWithSession
public void executeWithSession(AbstractSession session)
Description copied from class:Command
INTERNAL: If the CommandProcessor is a EclipseLink session then this method will get executed.- Specified by:
executeWithSession
in classCommand
- Parameters:
session
- The session that can be used to execute the command on.
-
-