|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.programlaunch.AbstractCommandRunner
AbstractCommandRunner.java Company MoreData
| Field Summary | |
protected java.lang.String |
_arguments
Arguments used to run the class. |
protected java.lang.String |
_command
The commans send by the client. |
protected ServerProperties |
_serverProperties
The server properties. |
| Constructor Summary | |
AbstractCommandRunner()
|
|
| Method Summary | |
protected java.lang.String[] |
getArgumentsArray()
Creates a String[] with the arguments to the main method of the target class. |
protected void |
getClientData()
Get client input data from client input stream. |
void |
run()
Run each command send by the client. |
protected abstract void |
runCommand()
Run one command send by the client. |
protected void |
sendOutputToTheClient(java.io.BufferedInputStream in,
java.io.BufferedInputStream err)
Sends output collected to the _stdoutFile and _stderrFile to the client. |
void |
setServerProperties(ServerProperties properties)
Sets server properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ServerProperties _serverProperties
protected java.lang.String _command
protected java.lang.String _arguments
| Constructor Detail |
public AbstractCommandRunner()
| Method Detail |
protected abstract void runCommand()
protected void getClientData()
protected java.lang.String[] getArgumentsArray()
protected void sendOutputToTheClient(java.io.BufferedInputStream in,
java.io.BufferedInputStream err)
public void run()
run in interface pt.moredata.programlaunch.CommandRunnerpublic void setServerProperties(ServerProperties properties)
setServerProperties in interface pt.moredata.programlaunch.CommandRunnerproperties - The server properties.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||