APIdia Launch Partner
Top Description Fields Constructors Methods
sun.rmi.transport

public abstract Class Transport

extends Object
Class Inheritance
Known Direct Subclasses
sun.rmi.transport.tcp.TCPTransport
Annotations
@SuppressWarnings:deprecation
Imports
java.io.IOException, .ObjectOutput, java.rmi.MarshalException, .NoSuchObjectException, .Remote, .RemoteException, java.rmi.server.LogStream, .ObjID, .RemoteCall, .RemoteServer, .ServerNotActiveException, sun.rmi.runtime.Log, sun.rmi.server.Dispatcher, .UnicastServerRef

Transport abstraction for enabling communication between different VMs.
Author
Ann Wollrath

Field Summary

Modifier and TypeField and Description
private static final ThreadLocal<Transport>
currentTransport

References the current transport when a call is being serviced

private static final ObjID
dgcID

ObjID for DGCImpl

pack-priv static final int
logLevel

"transport" package log level

pack-priv static final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static Transport
currentTransport()

Returns the current transport if a call is being serviced, otherwise returns null.

public void
exportObject(Target target)

Export the object so that it can accept incoming calls.

public abstract void
free(Endpoint ep)

Removes the Channel that generates connections to the endpoint ep.

public abstract Channel

Returns:

the channel or null if the transport cannot generate connections to this endpoint
getChannel
(Endpoint
the endpoint to which connections will be generated.
ep
)

Returns a Channel that generates connections to the endpoint ep.

private static String
public boolean
serviceCall(final RemoteCall call)
References Deprecated RemoteCall is deprecated or references (maybe indirectly) at least one deprecated element.

Service an incoming remote call.

private static void
setContextClassLoader(ClassLoader ccl)

Sets the context class loader for the current thread.

protected void
targetUnexported()

Invoked when an object that was exported on this transport has become unexported, either by being garbage collected or by being explicitly unexported.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentTransportback to summary
private static final ThreadLocal<Transport> currentTransport

References the current transport when a call is being serviced

dgcIDback to summary
private static final ObjID dgcID

ObjID for DGCImpl

logLevelback to summary
pack-priv static final int logLevel

"transport" package log level

transportLogback to summary
pack-priv static final Log transportLog

Constructor Detail

Transportback to summary
public Transport()

Method Detail

currentTransportback to summary
pack-priv static Transport currentTransport()

Returns the current transport if a call is being serviced, otherwise returns null.

exportObjectback to summary
public void exportObject(Target target) throws RemoteException

Export the object so that it can accept incoming calls.

freeback to summary
public abstract void free(Endpoint ep)

Removes the Channel that generates connections to the endpoint ep.

getChannelback to summary
public abstract Channel getChannel(Endpoint ep)

Returns a Channel that generates connections to the endpoint ep. A Channel is an object that creates and manages connections of a particular type to some particular address space.

Parameters
ep:Endpoint

the endpoint to which connections will be generated.

Returns:Channel

the channel or null if the transport cannot generate connections to this endpoint

getLogLevelback to summary
private static String getLogLevel()
serviceCallback to summary
public boolean serviceCall(final RemoteCall call)

References Deprecated

RemoteCall is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Service an incoming remote call. When a message arrives on the connection indicating the beginning of a remote call, the threads are required to call the serviceCall method of their transport. The default implementation of this method locates and calls the dispatcher object. Ordinarily a transport implementation will not need to override this method. At the entry to tr.serviceCall(conn), the connection's input stream is positioned at the start of the incoming message. The serviceCall method processes the incoming remote invocation and sends the result on the connection's output stream. If it returns "true", then the remote invocation was processed without error and the transport can cache the connection. If it returns "false", a protocol error occurred during the call, and the transport should destroy the connection.

setContextClassLoaderback to summary
private static void setContextClassLoader(ClassLoader ccl)

Sets the context class loader for the current thread.

targetUnexportedback to summary
protected void targetUnexported()

Invoked when an object that was exported on this transport has become unexported, either by being garbage collected or by being explicitly unexported.