Remote Systems
v6.4.1

com.ibm.etools.systems.dstore.core.server
Class ServerReceiver

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.ibm.etools.systems.dstore.core.util.Receiver
          extended bycom.ibm.etools.systems.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
static String Copyright
           
 
Fields inherited from class com.ibm.etools.systems.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 com.ibm.etools.systems.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
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
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 Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.