|
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.CommandHandler
org.eclipse.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 |
|---|
| Fields inherited from class org.eclipse.dstore.core.model.CommandHandler |
|---|
_classesToSend, _commands |
| 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 | |
|---|---|
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 |
Miner |
loadMiner(String minerId)
|
void |
loadMiners()
Loads the miners |
void |
requestClass(String className)
Does not apply to server. |
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 |
sendClass(String className)
Implemented to provide the means by which classes are requested and sent across the comm channel. |
void |
sendClass(String className,
String classByteStreamHandlerId)
Implemented to provide the means by which classes are requested and sent across the comm channel. |
void |
sendClassInstance(IRemoteClassInstance runnable,
String classByteStreamHandlerId)
Runs the specified class on the remote system |
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 org.eclipse.dstore.core.model.CommandHandler |
|---|
addCommand, cancelAllCommands, command, command, command, command, command, getCommandGenerator, getDataStore, handle, waitForInput |
| Methods inherited from class org.eclipse.dstore.core.model.Handler |
|---|
getWaitTime, isFinished, notifyInput, 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 |
| Constructor Detail |
public ServerCommandHandler(ArrayList loaders)
loaders - a list of ExternalLoaders used for loading miners| Method Detail |
public void setDataStore(DataStore dataStore)
setDataStore in class CommandHandlerdataStore - the associated DataStorepublic void loadMiners()
public Miner loadMiner(String minerId)
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 Handlerpublic void sendCommands()
sendCommands in class CommandHandler
public void sendFile(String fileName,
File file)
fileName - the name of the target filefile - the source file
public void sendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
sendFile in class CommandHandlerfileName - 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 unicode
public void sendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
sendFile in class CommandHandlerfileName - 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 bytes
public void sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary)
sendAppendFile in class CommandHandlerfileName - 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 unicode
public void sendAppendFile(String fileName,
byte[] bytes,
int size,
boolean binary,
String byteStreamHandlerId)
sendAppendFile in class CommandHandlerfileName - 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 sendClass(String className)
sendClass in class CommandHandlerclassName - the name of the class to request
public void sendClass(String className,
String classByteStreamHandlerId)
sendClass in class CommandHandlerclassName - the name of the class to requestclassByteStreamHandlerId - indicates which class byte stream handler to receive the class with
public void sendClassInstance(IRemoteClassInstance runnable,
String classByteStreamHandlerId)
CommandHandler
sendClassInstance in class CommandHandlerpublic void requestClass(String className)
requestClass in class CommandHandlerclassName - the name of the class to requestpublic void sendKeepAliveConfirmation()
sendKeepAliveConfirmation in class CommandHandlerpublic void sendKeepAliveRequest()
sendKeepAliveRequest in class CommandHandler
|
Remote System Explorer DataStore Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||