|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.eclipse.dstore.core.server.SecuredThread
org.eclipse.dstore.core.util.Receiver
public abstract class Receiver
This class is used for receiving data from a socket in the DataStore communication layer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected boolean |
_canExit
|
Fields inherited from class org.eclipse.dstore.core.server.SecuredThread |
---|
_dataStore |
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 |
preferenceChanged(String property,
String value)
A DataStore preference has changed |
void |
resetKeepAliveRequest(long timeout)
Interrupt the current KeepAliveRequest thread and restart the KeepAliveRequest thread with the specified timeout |
void |
run()
Called when the receiver thread is running |
Socket |
socket()
Returns the associated socket |
Methods inherited from class org.eclipse.dstore.core.server.SecuredThread |
---|
setDataStore, start |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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()
run
in interface Runnable
run
in class SecuredThread
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 occurredpublic void preferenceChanged(String property, String value)
IDataStorePreferenceListener
preferenceChanged
in interface IDataStorePreferenceListener
property
- the property that has changedvalue
- the value of the propertypublic void resetKeepAliveRequest(long timeout)
timeout
- when the KeepAliveRequest thread is expired
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |