|
Remote System Explorer DataStore Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.eclipse.dstore.core.server.SecuredThread
org.eclipse.dstore.core.model.Handler
org.eclipse.dstore.core.model.UpdateHandler
public abstract class UpdateHandler
Abstract class for handling updates. A UpdateHandler is a
Handler that contains a queue of data responses to be sent to
the client. Each DataStore instance uses a single update handler that
periodically sends it's data queue either to a client or directly to a domain
listener on the client.
The UpdateHandler is the means by which the DataStore sends information or files from the remote tools to the client.
| Field Summary | |
|---|---|
protected ArrayList |
_classesToSend
|
protected ArrayList |
_dataObjects
|
| Fields inherited from class org.eclipse.dstore.core.model.Handler |
|---|
_keepRunning, _waitIncrement |
| 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 | |
|---|---|
UpdateHandler()
Constructor |
|
| Method Summary | |
|---|---|
protected void |
clean(DataElement object)
|
protected void |
clean(DataElement object,
int depth)
|
protected void |
cleanChildren(DataElement parent)
Recursively clean children for deletion |
void |
handle()
Periodically called on the handler thread to sends data updates. |
abstract void |
requestClass(String className)
Implemented to provide the means by which classes are requested across the comm channel. |
abstract void |
sendClass(String className)
Implemented to provide the means by which classes are sent across the comm channel. |
abstract void |
sendClass(String className,
String classByteStreamHandlerId)
Implemented to provide the means by which classes are sent across the comm channel. |
abstract void |
sendKeepAliveConfirmation()
Implemented to provide the means by which keepalive confirmations are sent across the comm channel. |
abstract void |
sendKeepAliveRequest()
Implemented to provide the means by which keepalive requests are sent across the comm channel. |
abstract void |
sendUpdates()
Implemented to provide the means by which updates on the queue are sent. |
void |
update(ArrayList objects)
Adds a set of data objects to the update queue |
void |
update(DataElement object)
Adds an object to the update queue |
void |
update(DataElement object,
boolean immediate)
Adds an object to the update queue |
abstract void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary)
Implemented to provide the means by which files are sent and appended |
abstract void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Implemented to provide the means by which files are sent and appended |
abstract void |
updateClassInstance(IRemoteClassInstance runnable,
String deserializebyteStreamHandlerId)
Impleted to provide the means by which a class on the host is updated on the client |
abstract void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary)
Implemented to provide the means by which files are sent |
abstract void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Implemented to provide the means by which files are sent |
void |
waitForInput()
Causes the current thread to wait until this class request has been fulfilled. |
| Methods inherited from class org.eclipse.dstore.core.model.Handler |
|---|
finish, getWaitTime, isFinished, notifyInput, run, setDataStore, setWaitTime |
| 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 |
|---|
protected ArrayList _dataObjects
protected ArrayList _classesToSend
| Constructor Detail |
|---|
public UpdateHandler()
| Method Detail |
|---|
public void handle()
handle in class Handlerprotected void clean(DataElement object)
protected void clean(DataElement object,
int depth)
protected void cleanChildren(DataElement parent)
parent - public void update(ArrayList objects)
objects - a set of objects to get updatedpublic void update(DataElement object)
object - an object to get updated
public void update(DataElement object,
boolean immediate)
object - an object to get updatedimmediate - true indicates that this object should be first in the queuepublic void waitForInput()
waitForInput in class Handlerpublic abstract void sendUpdates()
public abstract void updateFile(String path,
byte[] bytes,
int size,
boolean binary)
path - the path of the file to sendbytes - the bytes to sendsize - the number of bytes to sendbinary - indicates whether to send the bytes as binary or text
public abstract void updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary)
path - the path of the file to sendbytes - the bytes to sendsize - the number of bytes to sendbinary - indicates whether to send the bytes as binary or text
public abstract void updateFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
path - the path of the file to sendbytes - the bytes to sendsize - the number of bytes to sendbinary - indicates whether to send the bytes as binary or textbyteStreamHandlerId - indicates the byte stream handler to receive the bytes
public abstract void updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
path - the path of the file to sendbytes - the bytes to sendsize - the number of bytes to sendbinary - indicates whether to send the bytes as binary or textbyteStreamHandlerId - indicates the byte stream handler to receive the bytespublic abstract void requestClass(String className)
className - the name of the class to requestpublic abstract void sendKeepAliveRequest()
public abstract void updateClassInstance(IRemoteClassInstance runnable,
String deserializebyteStreamHandlerId)
runnable - deserializebyteStreamHandlerId - public abstract void sendClass(String className)
className - the name of the class to send
public abstract void sendClass(String className,
String classByteStreamHandlerId)
className - the name of the class to sendclassByteStreamHandlerId - indicates which class byte stream handler to receive the class withpublic abstract void sendKeepAliveConfirmation()
|
Remote System Explorer DataStore Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||