Remote System Explorer DataStore
Release 3.2

org.eclipse.dstore.core.server
Class ServerReceiver

java.lang.Object
  extended by java.lang.Thread
      extended by org.eclipse.dstore.core.server.SecuredThread
          extended by org.eclipse.dstore.core.util.Receiver
              extended by org.eclipse.dstore.core.server.ServerReceiver
All Implemented Interfaces:
Runnable, IDataStorePreferenceListener

public class ServerReceiver
extends Receiver

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

Since:
3.0 moved from non-API to API

Field Summary
 
Fields inherited from class org.eclipse.dstore.core.util.Receiver
_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
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, preferenceChanged, run, 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
 

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 3.2

Copyright (c) IBM Corporation and others 2000, 2010. All Rights Reserved.