|
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.CommandHandler
com.ibm.etools.systems.dstore.core.client.ClientCommandHandler
The ClientCommandHandler is reponsible for maintaining a queue of commands and periodically sending commands from the queue to the server side.
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.CommandHandler |
---|
_commands |
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 | |
---|---|
ClientCommandHandler(Sender sender)
Constructor |
Method Summary | |
---|---|
void |
handle()
Periodically called to send commands from the queue. |
void |
sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
Appends bytes of a file from the client to the server |
void |
sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Appends bytes of a file from the client to the server |
void |
sendCommands()
Called periodically to send the current queue of commands to the server |
void |
sendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
Transmits the bytes of a file from the client to the server |
void |
sendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String bytesStreamHandlerId)
Transmits the bytes of a file from the client to the server |
void |
sendKeepAliveConfirmation()
|
void |
sendKeepAliveRequest()
|
void |
setDataStore(DataStore dataStore)
Sets the associated DataStore |
Methods inherited from class com.ibm.etools.systems.dstore.core.model.CommandHandler |
---|
addCommand, cancelAllCommands, command, command, command, command, command, getDataStore |
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 ClientCommandHandler(Sender sender)
sender
- the SenderMethod Detail |
public void setDataStore(DataStore dataStore)
CommandHandler
setDataStore
in class CommandHandler
public void sendFile(String fileName, byte[] bytes, int size, boolean binary, String bytesStreamHandlerId)
sendFile
in class CommandHandler
bytes
- the bytes of a file to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes as binary or unicodebytesStreamHandlerId
- indicates wwhich byte stream handler should receive the bytesfileName
- the name of the file to sendpublic void sendFile(String fileName, byte[] bytes, int size, boolean binary)
sendFile
in class CommandHandler
bytes
- the bytes of a file to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes as binary or unicodefileName
- the name of the file to sendpublic void sendAppendFile(String fileName, byte[] bytes, int size, boolean binary, String byteStreamHandlerId)
sendAppendFile
in class CommandHandler
bytes
- the bytes of a file to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes as binary or unicodebyteStreamHandlerId
- indicates which byte stream handler should receive the bytesfileName
- the name of the file to sendpublic void sendAppendFile(String fileName, byte[] bytes, int size, boolean binary)
sendAppendFile
in class CommandHandler
bytes
- the bytes of a file to sendsize
- the number of bytes to sendbinary
- indicates whether to send the bytes as binary or unicodefileName
- the name of the file to sendpublic void sendCommands()
sendCommands
in class CommandHandler
public void handle()
CommandHandler
handle
in class CommandHandler
public void sendKeepAliveConfirmation()
sendKeepAliveConfirmation
in class CommandHandler
public void sendKeepAliveRequest()
sendKeepAliveRequest
in class CommandHandler
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |