java.lang.Object | |
↳ | sun.rmi.transport.tcp.TCPEndpoint |
TCPEndpoint represents some communication endpoint for an address space (VM).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an endpoint for a specified host and port.
| |||||||||||
Create a custom socket factory endpoint for a specified host and port.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Indicates whether some other object is "equal to" this one.
| |||||||||||
Export the object to accept incoming calls.
| |||||||||||
Returns a channel for this (remote) endpoint.
| |||||||||||
Get the client socket factory associated with this endpoint.
| |||||||||||
Returns address for endpoint
| |||||||||||
Returns the transport for incoming connections to this
endpoint, if this endpoint was created as a server endpoint
(using getLocalEndpoint).
| |||||||||||
Returns the port that this endpoint's inbound transport listens
on, if this endpoint was created as a server endpoint (using
getLocalEndpoint).
| |||||||||||
Get an endpoint for the local address space on specified port.
| |||||||||||
Returns transport for making connections to remote endpoints;
(here, the default transport at port 0 is used).
| |||||||||||
Returns the port for this endpoint.
| |||||||||||
Get the server socket factory associated with this endpoint.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Get the endpoint from the input stream.
| |||||||||||
Create a new endpoint from input stream data.
| |||||||||||
Release idle outbound connections to reduce demand on I/O resources.
| |||||||||||
Return string representation for endpoint.
| |||||||||||
Write endpoint to output stream.
| |||||||||||
Write endpoint to output stream in older format used by
UnicastRef for JDK1.1 compatibility.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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.
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.
Indicates whether some other object is "equal to" this one.
The equals
method implements an equivalence relation
on non-null object references:
x
, x.equals(x)
should return
true
.
x
and y
, x.equals(y)
should return true
if and only if
y.equals(x)
returns true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y) consistently return true
or consistently return false
, provided no
information used in equals
comparisons on the
objects is modified.
x
,
x.equals(null)
should return false
.
The equals method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x
and
y
, this method returns true
if and only
if x
and y
refer to the same object
(x == y
has the value true
).
Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
obj | the reference object with which to compare. |
---|
true
if this object is the same as the obj
argument; false
otherwise.Export the object to accept incoming calls.
RemoteException |
---|
Get the client socket factory associated with this endpoint.
Returns the transport for incoming connections to this endpoint, if this endpoint was created as a server endpoint (using getLocalEndpoint).
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.
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.
Returns transport for making connections to remote endpoints; (here, the default transport at port 0 is used).
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.
Get the server socket factory associated with this endpoint.
Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Get the endpoint from the input stream.
in | the input stream |
---|
IOException | If id could not be read (due to stream failure) |
---|---|
ClassNotFoundException |
Release idle outbound connections to reduce demand on I/O resources. All transports are asked to release excess connections.
Return string representation for endpoint.
Write endpoint to output stream in older format used by UnicastRef for JDK1.1 compatibility.
IOException |
---|