Save This Page
Home » openjdk-7 » sun.rmi » transport » [javadoc | source]
sun.rmi.transport
abstract public class: Transport [javadoc | source]
java.lang.Object
   sun.rmi.transport.Transport
Transport abstraction for enabling communication between different VMs.
Field Summary
static final  int logLevel    "transport" package log level 
static final  Log transportLog     
Method from sun.rmi.transport.Transport Summary:
checkAcceptPermission,   currentTransport,   exportObject,   free,   getChannel,   serviceCall,   targetUnexported
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.rmi.transport.Transport Detail:
 abstract protected  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.
 static Transport currentTransport() 
    Returns the current transport if a call is being serviced, otherwise returns null.
 public  void exportObject(Target target) throws RemoteException 
    Export the object so that it can accept incoming calls.
 abstract public  void free(Endpoint ep)
    Removes the Channel that generates connections to the endpoint ep.
 abstract public 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.
 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  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.