Remote System Explorer DataStore
Release 1.0

org.eclipse.dstore.core.server
Class ServerReceiver

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

public class ServerReceiver
extends Receiver

The ServerReciever is responsible for recieving data from the client side.


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
ServerReceiver(Socket socket, ConnectionEstablisher connection)
          Constructor
 
Method Summary
 void finish()
          Called when a DataStore connection is terminated.
 void handleDocument(DataElement documentObject)
          Implementation for handling the receiving on documents on the server side.
 void handleError(Throwable e)
          Implemented to provide a means of handling errors in the communication layer
 
Methods inherited from class org.eclipse.dstore.core.util.Receiver
canExit, 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

ServerReceiver

public ServerReceiver(Socket socket,
                      ConnectionEstablisher connection)
Constructor

Parameters:
socket - the socket to receive from
connection - the connection establisher
Method Detail

handleDocument

public void handleDocument(DataElement documentObject)
Implementation for handling the receiving on documents on the server side.

Specified by:
handleDocument in class Receiver
Parameters:
documentObject - to tree root of received data.

finish

public void finish()
Description copied from class: Receiver
Called when a DataStore connection is terminated.

Overrides:
finish in class Receiver

handleError

public void handleError(Throwable e)
Description copied from class: Receiver
Implemented to provide a means of handling errors in the communication layer

Specified by:
handleError in class Receiver
Parameters:
e - an exception that occurred
See Also:
Receiver.finish()

Remote System Explorer DataStore
Release 1.0

Guidelines for using DataStore APIs.