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.
TransportManager
,
Serialized FormConstructor and Description |
---|
ConnectToHostCommand() |
Modifier and Type | Method and 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.
|
isInternalCommand
getServiceId, setServiceId
public void executeWithRCM(RemoteCommandManager rcm)
executeWithRCM
in class RCMCommand
public void executeWithSession(AbstractSession session)
Command
executeWithSession
in class Command
session
- The session that can be used to execute the command on.EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference