|
Remote System Explorer DataStore Release 3.3 |
|||||||||
| 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.
| 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 |
| 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 |
|---|
protected boolean _canExit
| Constructor Detail |
|---|
public Receiver(Socket socket,
DataStore dataStore)
socket - the socket to read fromdataStore - the associated DataStore| Method Detail |
|---|
public void finish()
public boolean canExit()
public void run()
run in interface Runnablerun in class SecuredThreadpublic 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
public void preferenceChanged(String property,
String value)
IDataStorePreferenceListener
preferenceChanged in interface IDataStorePreferenceListenerproperty - 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.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||