org.eclipse.dstore.core.server
Class ServerReceiver
java.lang.Object
java.lang.Thread
org.eclipse.dstore.core.server.SecuredThread
org.eclipse.dstore.core.util.Receiver
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
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 java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
ServerReceiver
public ServerReceiver(Socket socket,
ConnectionEstablisher connection)
- Constructor
- Parameters:
socket
- the socket to receive fromconnection
- the connection establisher
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()
Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.