|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.invocation.pooled.interfaces.ServerAddress
public class ServerAddress
This class encapsulates all the required information for a client to establish a connection with the server. It also attempts to provide a fast hash() function since this object is used as a key in a hashmap mainted by the ConnectionManager.
Field Summary | |
---|---|
String |
address
Address of host to connect to |
SocketFactory |
clientSocketFactory
An option socket factory for connecting to the server |
boolean |
enableTcpNoDelay
If the TcpNoDelay option should be used on the socket. |
int |
port
Port the service is listening on |
int |
timeout
Timeout of setSoTimeout |
Constructor Summary | |
---|---|
ServerAddress(String address,
int port,
boolean enableTcpNoDelay,
int timeout,
SocketFactory clientSocketFactory)
The server address/port representation. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String address
public int port
public boolean enableTcpNoDelay
public int timeout
public SocketFactory clientSocketFactory
Constructor Detail |
---|
public ServerAddress(String address, int port, boolean enableTcpNoDelay, int timeout, SocketFactory clientSocketFactory)
address
- - hostname/ip of the serverport
- - the invoker portenableTcpNoDelay
- - the Socket.setTcpNoDelay flagtimeout
- - the Socket.setSoTimeout valueclientSocketFactory
- - optional SocketFactoryMethod Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |