public abstract class

Transport

extends Object
java.lang.Object
   ↳ sun.rmi.transport.Transport
Known Direct Subclasses

Class Overview

Transport abstraction for enabling communication between different VMs.

Summary

Public Constructors
Transport()
Public Methods
void exportObject(Target target)
Export the object so that it can accept incoming calls.
abstract void free(Endpoint ep)
Removes the Channel that generates connections to the endpoint ep.
abstract Channel getChannel(Endpoint ep)
Returns a Channel that generates connections to the endpoint ep.
boolean serviceCall(RemoteCall call)
Service an incoming remote call.
Protected Methods
abstract void checkAcceptPermission(AccessControlContext acc)
Verify that the current access control context has permission to accept the connection being dispatched by the current thread.
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Transport ()

Public Methods

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 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 the endpoint to which connections will be generated.
Returns
  • the channel or null if the transport cannot generate connections to this endpoint

public boolean serviceCall (RemoteCall call)

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.

Protected Methods

protected abstract void checkAcceptPermission (AccessControlContext acc)

Verify that the current access control context has permission to accept the connection being dispatched by the current thread. The current access control context is passed as a parameter to avoid the overhead of an additional call to AccessController.getContext.

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.