Remote System Explorer DataStore
Release 1.0

org.eclipse.dstore.core.client
Class ClientReceiver

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.eclipse.dstore.core.util.Receiver
          extended byorg.eclipse.dstore.core.client.ClientReceiver
All Implemented Interfaces:
Runnable

public class ClientReceiver
extends Receiver


Field Summary
 
Fields inherited from class org.eclipse.dstore.core.util.Receiver
_canExit, _dataStore
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClientReceiver(Socket socket, DataStore dataStore)
          Constructor
 
Method Summary
 void handleDocument(DataElement documentObject)
          Called when new data is received from the server side.
 void handleError(Throwable e)
          Called when an error occurs
 
Methods inherited from class org.eclipse.dstore.core.util.Receiver
canExit, finish, handleInput, run, 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
 

Constructor Detail

ClientReceiver

public ClientReceiver(Socket socket,
                      DataStore dataStore)
Constructor

Method Detail

handleDocument

public void handleDocument(DataElement documentObject)
Called when new data is received from the server side.

Specified by:
handleDocument in class Receiver
Parameters:
documentObject - the root object of incoming data

handleError

public void handleError(Throwable e)
Called when an error occurs

Specified by:
handleError in class Receiver
Parameters:
e - the exception that occurred

Remote System Explorer DataStore
Release 1.0

Guidelines for using DataStore APIs.