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

public Class ConnectToHostCommand

extends RCMCommand
Class Inheritance
Imports
org.eclipse.persistence.internal.sessions.AbstractSession, org.eclipse.persistence.sessions.coordination.RemoteCommandManager

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.

Author
Steven Vo
Since
OracleAS TopLink 10g (9.0.4)
See Also
org.eclipse.persistence.sessions.coordination.TransportManager

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
executeWithSession(AbstractSession
The session that can be used to execute the command on.
session
)

Implements abstract org.eclipse.persistence.sessions.coordination.Command.executeWithSession.

INTERNAL: If the CommandProcessor is a EclipseLink session then this method will get executed.
Inherited from org.eclipse.persistence.internal.sessions.coordination.RCMCommand:
isInternalCommand

Constructor Detail

ConnectToHostCommandback to summary
public ConnectToHostCommand()

Method Detail

executeWithRCMback to summary
public void executeWithRCM(RemoteCommandManager rcm)

Implements abstract org.eclipse.persistence.internal.sessions.coordination.RCMCommand.executeWithRCM.

INTERNAL: Executed on the RCM when received. Just add the remote object reference to the connection list.

Annotations
@Override
executeWithSessionback to summary
public void executeWithSession(AbstractSession session)

Implements abstract org.eclipse.persistence.sessions.coordination.Command.executeWithSession.

Doc from org.eclipse.persistence.sessions.coordination.Command.executeWithSession.

INTERNAL: If the CommandProcessor is a EclipseLink session then this method will get executed.

Parameters
session:AbstractSession

The session that can be used to execute the command on.

Annotations
@Override