|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.etools.systems.dstore.core.util.Receiver
This class is used for receiving data from a socket in the DataStore communication layer.
Field Summary | |
---|---|
protected boolean |
_canExit
|
protected DataStore |
_dataStore
|
static String |
Copyright
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
Receiver(Socket socket,
DataStore dataStore)
Constructor |
Method Summary | |
---|---|
boolean |
canExit()
Indicates that the receiver can stop receiving data from the socket. |
void |
finish()
Called when a DataStore connection is terminated. |
abstract void |
handleDocument(DataElement documentObject)
Implemented to provide a means of handling received input |
abstract void |
handleError(Throwable e)
Implemented to provide a means of handling errors in the communication layer |
void |
handleInput()
Periodically called to receive data from the socket |
void |
run()
Called when the receiver thread is running |
Socket |
socket()
Returns the associated socket |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String Copyright
protected DataStore _dataStore
protected boolean _canExit
Constructor Detail |
public Receiver(Socket socket, DataStore dataStore)
socket
- the socket to read fromdataStore
- the associated DataStoreMethod Detail |
public void finish()
public boolean canExit()
public void run()
public void handleInput()
public Socket socket()
public abstract void handleDocument(DataElement documentObject)
documentObject
- the root object of the received datapublic abstract void handleError(Throwable e)
e
- an exception that occurred
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |