|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jini.jeri.tcp.TcpEndpoint.ConnectionEndpointImpl
private class TcpEndpoint.ConnectionEndpointImpl
ConnectionEndpoint implementation. Instances of this class should never get exposed to anything other than our ConnectionManager, which we trust to operate correctly, so we do not bother to validate request handles and connections passed in.
Constructor Summary | |
---|---|
TcpEndpoint.ConnectionEndpointImpl()
|
Method Summary | |
---|---|
private void |
checkResolvePermission()
|
Connection |
connect(OutboundRequestHandle handle)
Invoked by ConnectionManager to create a new connection. |
Connection |
connect(OutboundRequestHandle handle,
Collection active,
Collection idle)
Invoked by ConnectionManager to reuse an existing connection. |
private Socket |
connectToHost(Constraints.Distilled distilled)
Returns a socket connected to this endpoint's host and port, according the specified constraints. |
private Socket |
connectToSocketAddress(SocketAddress socketAddress,
Constraints.Distilled distilled)
Returns a socket connected to the specified address, with a timeout governed by the specified constraints. |
private Socket |
newSocket()
Returns a new unconnected socket, using this endpoint's socket factory if non-null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
TcpEndpoint.ConnectionEndpointImpl()
Method Detail |
---|
public Connection connect(OutboundRequestHandle handle) throws IOException
connect
in interface ConnectionEndpoint
handle
- the handle for the request
IOException
- if an I/O exception occursprivate Socket connectToHost(Constraints.Distilled distilled) throws IOException
IOException
private Socket connectToSocketAddress(SocketAddress socketAddress, Constraints.Distilled distilled) throws IOException
IOException
private Socket newSocket() throws IOException
IOException
public Connection connect(OutboundRequestHandle handle, Collection active, Collection idle)
connect
in interface ConnectionEndpoint
handle
- the handle for the requestactive
- the connections with requests in progressidle
- the connections with no requests in progress
null
private void checkResolvePermission()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |