Class Overview
TCPTransport is the socket-based implementation of the RMI Transport
abstraction.
Summary
Public Methods |
void
|
exportObject(Target target)
Export the object so that it can accept incoming calls.
|
void
|
free(Endpoint ep)
Removes the Channel that generates connections to the
endpoint ep.
|
TCPChannel
|
getChannel(Endpoint ep)
Returns a Channel that generates connections to the
endpoint ep.
|
static
String
|
getClientHost()
Returns the client host for the current thread's connection.
|
void
|
shedConnectionCaches()
Closes all cached connections in every channel subordinated to this
transport.
|
Protected Methods |
void
|
checkAcceptPermission(AccessControlContext acc)
Verify that the current access control context has permission to
accept the connection being dispatched by the current thread.
|
synchronized
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
sun.rmi.transport.Transport
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
|
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.
|
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.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Methods
public
void
exportObject
(Target target)
Export the object so that it can accept incoming calls.
public
void
free
(Endpoint ep)
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.
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
static
String
getClientHost
()
Returns the client host for the current thread's connection. Throws
ServerNotActiveException if no connection is active for this thread.
public
void
shedConnectionCaches
()
Closes all cached connections in every channel subordinated to this
transport. Currently, this only closes outgoing connections.
Protected Methods
protected
void
checkAcceptPermission
(AccessControlContext acc)
Verify that the current access control context has permission to
accept the connection being dispatched by the current thread.
protected
synchronized
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.