|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.etools.systems.dstore.core.model.Handler
com.ibm.etools.systems.dstore.core.model.UpdateHandler
Abtract 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 |
_dataObjects
|
static String |
Copyright
|
Fields inherited from class com.ibm.etools.systems.dstore.core.model.Handler |
---|
_dataStore, _waitIncrement |
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)
|
void |
handle()
Periodically called on the handler thread to sends data updates. |
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 |
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 |
Methods inherited from class com.ibm.etools.systems.dstore.core.model.Handler |
---|
finish, getWaitTime, isFinished, 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 |
public static final String Copyright
protected ArrayList _dataObjects
Constructor Detail |
public UpdateHandler()
Method Detail |
public void handle()
handle
in class Handler
protected void clean(DataElement object)
protected void clean(DataElement object, int depth)
public void update(ArrayList objects)
objects
- a set of objects to get updatedpublic void update(DataElement object)
object
- an object to get updatedpublic void update(DataElement object, boolean immediate)
object
- an object to get updatedimmediate
- true indicates that this object should be first in the queuepublic 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 textpublic 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 textpublic 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 bytespublic 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 sendKeepAliveRequest()
public abstract void sendKeepAliveConfirmation()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |