|
Remote System Explorer DataStore Release 1.0 |
|||||||||||
| 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.model.Handler
org.eclipse.dstore.core.model.UpdateHandler
org.eclipse.dstore.core.client.ClientUpdateHandler
The ClientUpdateHandler is contains a queue of data update requests and periodically sends out domain notifications to domain listeners
| Field Summary |
|---|
| Fields inherited from class org.eclipse.dstore.core.model.UpdateHandler |
|---|
_classesToSend, _dataObjects |
| Fields inherited from class org.eclipse.dstore.core.model.Handler |
|---|
_dataStore, _keepRunning, _waitIncrement |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
ClientUpdateHandler()
Constructor |
|
| Method Summary | |
|---|---|
void |
requestClass(String className)
Implemented to provide the means by which classes are requested across the comm channel. |
void |
sendClass(String className)
Does not apply in this case. |
void |
sendClass(String className,
String classByteStreamHandlerId)
Does not apply in this case. |
void |
sendKeepAliveConfirmation()
Does not apply in this case. |
void |
sendKeepAliveRequest()
Does not apply in this case. |
void |
sendUpdates()
Periodically called to notify domain listeners of updated data from the server |
void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary)
Not applicable - this is only applicable on the server side |
void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Not applicable - this is only applicable on the server side |
void |
updateClassInstance(IRemoteClassInstance runnable,
String deserializebyteStreamHandlerId)
Impleted to provide the means by which a class on the host is updated on the client |
void |
updateFile(File file,
DataElement object)
Notifies domain listeners that a file has been updated |
void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary)
Not applicable - this is only applicable on the server side |
void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Not applicable - this is only applicable on the server side |
| Methods inherited from class org.eclipse.dstore.core.model.UpdateHandler |
|---|
clean, clean, handle, update, update, update, waitForInput |
| 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 |
| Constructor Detail |
public ClientUpdateHandler()
| Method Detail |
public void updateFile(String path,
byte[] bytes,
int size,
boolean binary)
updateFile in class UpdateHandlerpath - 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 void updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary)
updateAppendFile in class UpdateHandlerpath - 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 void updateFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
updateFile in class UpdateHandlerpath - 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 void updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
updateAppendFile in class UpdateHandlerpath - 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 void updateFile(File file,
DataElement object)
file - the updated fileobject - the element associated with the updated filepublic void sendUpdates()
sendUpdates in class UpdateHandlerpublic void requestClass(String className)
requestClass in class UpdateHandlerclassName - the name of the class to request
public void updateClassInstance(IRemoteClassInstance runnable,
String deserializebyteStreamHandlerId)
updateClassInstance in class UpdateHandlerrunnable - deserializebyteStreamHandlerId -
public void sendClass(String className,
String classByteStreamHandlerId)
sendClass in class UpdateHandlerclassName - the name of the class to sendclassByteStreamHandlerId - indicates which class byte stream handler to receive the class withpublic void sendClass(String className)
sendClass in class UpdateHandlerclassName - the name of the class to sendpublic void sendKeepAliveRequest()
sendKeepAliveRequest in class UpdateHandlerpublic void sendKeepAliveConfirmation()
sendKeepAliveConfirmation in class UpdateHandler
|
Remote System Explorer DataStore Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||