|
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
com.ibm.etools.systems.dstore.core.server.ServerUpdateHandler
The ServerUpdateHandler is contains a queue of data update requests and periodically transmits it's queue to the client
Field Summary | |
---|---|
protected DataElement |
_confirmKeepAliveDocumentElement
|
protected DataElement |
_keepAliveDocumentElement
|
protected DataElement |
_pendingKeepAliveConfirmation
|
protected DataElement |
_pendingKeepAliveRequest
|
static String |
Copyright
|
Fields inherited from class com.ibm.etools.systems.dstore.core.model.UpdateHandler |
---|
_dataObjects |
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 | |
---|---|
ServerUpdateHandler()
Constructor |
Method Summary | |
---|---|
void |
addSender(Sender sender)
Add a sender to the list of senders. |
void |
handle()
Periodically called on the handler thread to sends data updates. |
void |
removeSender(Sender sender)
Remove a sender from the list of senders. |
void |
removeSenderWith(Socket socket)
Removes the sender that is associated with the specified socket. |
void |
sendKeepAliveConfirmation()
Implemented to provide the means by which keepalive confirmations are sent across the comm channel. |
void |
sendKeepAliveRequest()
Implemented to provide the means by which keepalive requests are sent across the comm channel. |
void |
sendUpdates()
Periodically called to send data in the queue from the server to the client |
void |
setDataStore(DataStore dataStore)
Sets the associated DataStore |
void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary)
Appends bytes to the specified file on the client. |
void |
updateAppendFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Appends bytes to the specified file on the client. |
void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary)
Sends bytes to the specified file on the client. |
void |
updateFile(String path,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Sends bytes to the specified file on the client. |
Methods inherited from class com.ibm.etools.systems.dstore.core.model.UpdateHandler |
---|
clean, clean, update, update, update |
Methods inherited from class com.ibm.etools.systems.dstore.core.model.Handler |
---|
finish, getWaitTime, isFinished, run, 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 DataElement _keepAliveDocumentElement
protected DataElement _confirmKeepAliveDocumentElement
protected DataElement _pendingKeepAliveRequest
protected DataElement _pendingKeepAliveConfirmation
Constructor Detail |
public ServerUpdateHandler()
Method Detail |
public void setDataStore(DataStore dataStore)
setDataStore
in class Handler
dataStore
- public void addSender(Sender sender)
Sender
. If
there are more than one clients, then this is how senders are added.
sender
- a sender connected to a socketpublic void removeSender(Sender sender)
sender
- the sender to removepublic void updateFile(String path, byte[] bytes, int size, boolean binary)
updateFile
in class UpdateHandler
path
- the name of the file on the clientbytes
- the bytes to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes and binary or textpublic void updateFile(String path, byte[] bytes, int size, boolean binary, String byteStreamHandlerId)
updateFile
in class UpdateHandler
path
- the name of the file on the clientbytes
- the bytes to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes and binary or textbyteStreamHandlerId
- indicates the byte stream handler to receive the bytespublic void updateAppendFile(String path, byte[] bytes, int size, boolean binary)
updateAppendFile
in class UpdateHandler
path
- the name of the file on the clientbytes
- the bytes to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes and binary or textpublic void updateAppendFile(String path, byte[] bytes, int size, boolean binary, String byteStreamHandlerId)
updateAppendFile
in class UpdateHandler
path
- the name of the file on the clientbytes
- the bytes to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes and binary or textbyteStreamHandlerId
- indicates the byte stream handler to receive the bytespublic void handle()
handle
in class UpdateHandler
public void sendUpdates()
sendUpdates
in class UpdateHandler
public void removeSenderWith(Socket socket)
socket
- the socket on which a sender communicatespublic void sendKeepAliveRequest()
UpdateHandler
sendKeepAliveRequest
in class UpdateHandler
public void sendKeepAliveConfirmation()
UpdateHandler
sendKeepAliveConfirmation
in class UpdateHandler
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |