| java.lang.Object sun.rmi.transport.tcp.TCPEndpoint
TCPEndpoint | public class TCPEndpoint implements Endpoint(Code) | | TCPEndpoint represents some communication endpoint for an address
space (VM).
author: Ann Wollrath |
TCPEndpoint | public TCPEndpoint(String host, int port)(Code) | | Create an endpoint for a specified host and port.
This should not be used by external classes to create endpoints
for servers in this VM; use getLocalEndpoint instead.
|
TCPEndpoint | public TCPEndpoint(String host, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)(Code) | | Create a custom socket factory endpoint for a specified host and port.
This should not be used by external classes to create endpoints
for servers in this VM; use getLocalEndpoint instead.
|
getChannel | public Channel getChannel()(Code) | | Returns a channel for this (remote) endpoint.
|
getClientSocketFactory | public RMIClientSocketFactory getClientSocketFactory()(Code) | | Get the client socket factory associated with this endpoint.
|
getHost | public String getHost()(Code) | | Returns address for endpoint
|
getInboundTransport | public Transport getInboundTransport()(Code) | | Returns the transport for incoming connections to this
endpoint, if this endpoint was created as a server endpoint
(using getLocalEndpoint).
|
getListenPort | public int getListenPort()(Code) | | Returns the port that this endpoint's inbound transport listens
on, if this endpoint was created as a server endpoint (using
getLocalEndpoint). If this endpoint was created for the
default/anonymous port, then this method returns zero even if
the transport has started listening.
|
getLocalEndpoint | public static TCPEndpoint getLocalEndpoint(int port)(Code) | | Get an endpoint for the local address space on specified port.
If port number is 0, it returns shared default endpoint object
whose host name and port may or may not have been determined.
|
getOutboundTransport | public Transport getOutboundTransport()(Code) | | Returns transport for making connections to remote endpoints;
(here, the default transport at port 0 is used).
|
getPort | public int getPort()(Code) | | Returns the port for this endpoint. If this endpoint was
created as a server endpoint (using getLocalEndpoint) for a
default/anonymous port and its inbound transport has started
listening, this method returns (instead of zero) the actual
bound port suitable for passing to clients.
|
getServerSocketFactory | public RMIServerSocketFactory getServerSocketFactory()(Code) | | Get the server socket factory associated with this endpoint.
|
hashCode | public int hashCode()(Code) | | |
setDefaultPort | static void setDefaultPort(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)(Code) | | Set the port of the (shared) default endpoint object.
When first created, it contains port 0 because the transport
hasn't tried to listen to get assigned a port, or if listening
failed, a port hasn't been assigned from the server.
|
setLocalHost | static void setLocalHost(String host)(Code) | | Set the local host name, if currently unknown.
|
shedConnectionCaches | public static void shedConnectionCaches()(Code) | | Release idle outbound connections to reduce demand on I/O resources.
All transports are asked to release excess connections.
|
toString | public String toString()(Code) | | Return string representation for endpoint.
|
writeHostPortFormat | public void writeHostPortFormat(DataOutput out) throws IOException(Code) | | Write endpoint to output stream in older format used by
UnicastRef for JDK1.1 compatibility.
|
|
|