|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.transport.flexfeed.FlexfeedCommServer.ClientHandler
public class FlexfeedCommServer.ClientHandler
Field Summary | |
---|---|
protected java.lang.String |
_clientHost
|
protected Mocket |
_clientMocket
|
protected int |
_clientPort
|
protected boolean |
_disconnected
|
protected java.util.Vector |
_newObjects
|
protected java.io.ObjectInputStream |
_ois
|
Constructor Summary | |
---|---|
FlexfeedCommServer.ClientHandler(Mocket clientMocket)
ClientHandler sets the socket |
Method Summary | |
---|---|
java.util.Vector |
getNewObjects()
getNewObjects |
boolean |
isConnected()
isConnected |
boolean |
peerUnreachableWarning(long timeSinceLastContact)
|
void |
run()
run While connected, continues to read the object input stream and adds all objects to the newObjects vector |
void |
start()
starts the client handler |
void |
stop()
stop sets client handler to disconnected which will terminate the "run" while loop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Mocket _clientMocket
protected java.io.ObjectInputStream _ois
protected java.util.Vector _newObjects
protected boolean _disconnected
protected int _clientPort
protected java.lang.String _clientHost
Constructor Detail |
---|
public FlexfeedCommServer.ClientHandler(Mocket clientMocket)
the
- socket for the client handler to read fromMethod Detail |
---|
public void start() throws TransportFailure
TransportFailure
public void stop()
public void run()
run
in interface java.lang.Runnable
public java.util.Vector getNewObjects()
public boolean isConnected()
public boolean peerUnreachableWarning(long timeSinceLastContact)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |