|
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.server.ServerCommandHandler
The ServerCommandHandler is reponsible for maintaining a queue of commands and periodically routing commands from the queue to the appropriate miners.
Field Summary | |
---|---|
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 | |
---|---|
ServerCommandHandler(ArrayList loaders)
Constructor |
Method Summary | |
---|---|
void |
finish()
Called when the DataStore session is finished or when there is an unexpected error. |
void |
finishMiner(String name)
Terminates a specified miner |
Miner |
getMiner(String name)
Returns the specified miner |
ArrayList |
getMiners()
Returns the list of loaded miners |
void |
loadMiners()
Loads the miners |
void |
sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
Appends bytes sent from the client to a file |
void |
sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Appends bytes sent from the client to a file |
void |
sendCommands()
Called periodically to route the current queue of commands to the appropriate miners |
void |
sendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
Sets the contents of a file with bytes sent from the client |
void |
sendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
Sets the contents of a file with bytes sent from the client |
void |
sendFile(String fileName,
File file)
Set the contents of a file with the specified file |
void |
sendKeepAliveConfirmation()
Does not apply to server. |
void |
sendKeepAliveRequest()
Does not apply to server. |
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, handle |
Methods inherited from class com.ibm.etools.systems.dstore.core.model.Handler |
---|
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
Constructor Detail |
public ServerCommandHandler(ArrayList loaders)
loaders
- a list of ExternalLoader
s used for loading minersMethod Detail |
public void setDataStore(DataStore dataStore)
setDataStore
in class CommandHandler
dataStore
- the associated DataStorepublic void loadMiners()
public ArrayList getMiners()
public Miner getMiner(String name)
name
- the qualified classname of the miner to return
public void finishMiner(String name)
name
- the qualified classname of the miner to terminatepublic void finish()
finish
in class Handler
public void sendCommands()
sendCommands
in class CommandHandler
public void sendFile(String fileName, File file)
fileName
- the name of the target filefile
- the source filepublic void sendFile(String fileName, byte[] bytes, int size, boolean binary)
sendFile
in class CommandHandler
fileName
- the name of the file to append tobytes
- the bytes of a file to insertsize
- the number of bytes to insertbinary
- indicates whether to insert the bytes as binary or unicodepublic void sendFile(String fileName, byte[] bytes, int size, boolean binary, String byteStreamHandlerId)
sendFile
in class CommandHandler
fileName
- the name of the file to append tobytes
- the bytes of a file to insertsize
- the number of bytes to insertbinary
- indicates whether to insert the bytes as binary or unicodebyteStreamHandlerId
- indicates which byte stream handler should receive the bytespublic void sendAppendFile(String fileName, byte[] bytes, int size, boolean binary)
sendAppendFile
in class CommandHandler
fileName
- the name of the file to append tobytes
- the bytes of a file to appendsize
- the number of bytes to appendbinary
- indicates whether to append the bytes as binary or unicodepublic void sendAppendFile(String fileName, byte[] bytes, int size, boolean binary, String byteStreamHandlerId)
sendAppendFile
in class CommandHandler
fileName
- the name of the file to append tobytes
- the bytes of a file to appendsize
- the number of bytes to appendbinary
- indicates whether to append the bytes as binary or unicodebyteStreamHandlerId
- indicates which byte stream handler should receive the bytespublic 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 |