|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jcs.auxiliary.lateral.socket.tcp.utils.SocketOpener
Socket openere that will timeout on the initial connect rather than block forever. Technique from core java II.
| Field Summary | |
private java.lang.String |
host
|
private int |
port
|
private java.net.Socket |
socket
|
| Constructor Summary | |
SocketOpener(java.lang.String host,
int port)
Constructor for the SocketOpener object |
|
| Method Summary | |
java.net.Socket |
getSocket()
Gets the socket attribute of the SocketOpener object |
static java.net.Socket |
openSocket(java.lang.String host,
int port,
int timeOut)
Constructor for the SocketOpener object |
void |
run()
Main processing method for the SocketOpener object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String host
private int port
private java.net.Socket socket
| Constructor Detail |
public SocketOpener(java.lang.String host,
int port)
host - port - | Method Detail |
public static java.net.Socket openSocket(java.lang.String host,
int port,
int timeOut)
public void run()
run in interface java.lang.Runnablepublic java.net.Socket getSocket()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||