java.lang.Object | |
↳ | sun.rmi.transport.Transport |
![]() |
Transport abstraction for enabling communication between different VMs.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Export the object so that it can accept incoming calls.
| |||||||||||
Removes the Channel that generates connections to the
endpoint ep.
| |||||||||||
Returns a Channel that generates connections to the
endpoint ep.
| |||||||||||
Service an incoming remote call.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Verify that the current access control context has permission to accept
the connection being dispatched by the current thread.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Export the object so that it can accept incoming calls.
RemoteException |
---|
Removes the Channel that generates connections to the 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.
ep | the endpoint to which connections will be generated. |
---|
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.
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.
Invoked when an object that was exported on this transport has become unexported, either by being garbage collected or by being explicitly unexported.