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

public abstract Class RemoteConnection

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
org.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection, org.eclipse.persistence.internal.sessions.coordination.rmi.RMIRemoteConnection
Imports
org.eclipse.persistence.exceptions.CommunicationException, org.eclipse.persistence.sessions.coordination.ServiceId, .Command

Purpose: Define an abstract class for the remote object that can execute a remote command using different transport protocols.

Description: This abstract class represents the remote object that is used by the remote command manager to send remote commands. The underlying transport mechanism is transparently implemented by the transport subclass implementations.

Since
OracleAS TopLink 10g (9.0.4)

Field Summary

Modifier and TypeField and Description
protected ServiceId
serviceId

The service on the receiving end of this connection

Constructor Summary

AccessConstructor and Description
protected
RemoteConnection()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public void
close()

INTERNAL: cleanup whatever is necessary.

public abstract Object
executeCommand(Command command)

INTERNAL: Execute the remote command.

public abstract Object
executeCommand(byte[] command)

INTERNAL: Execute the remote command.

public ServiceId
getServiceId()

INTERNAL: Return the service info of the receiving service

public void
setServiceId(ServiceId newServiceId)

INTERNAL: Set the service info of the receiving service

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serviceIdback to summary
protected ServiceId serviceId

The service on the receiving end of this connection

Constructor Detail

RemoteConnectionback to summary
protected RemoteConnection()

Default constructor.

Method Detail

closeback to summary
public void close()

INTERNAL: cleanup whatever is necessary. Invoked when the TransportManager discard connections.

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

INTERNAL: Execute the remote command. The result of execution is returned.

executeCommandback to summary
public abstract Object executeCommand(byte[] command) throws CommunicationException

INTERNAL: Execute the remote command. The result of execution is returned.

getServiceIdback to summary
public ServiceId getServiceId()

INTERNAL: Return the service info of the receiving service

setServiceIdback to summary
public void setServiceId(ServiceId newServiceId)

INTERNAL: Set the service info of the receiving service

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override