$darkmode
DENOPTIM
|
Public Member Functions | |
ProcessHandler (String cmdStr, String id) | |
void | runProcessInBASH () throws DENOPTIMException |
Run the process associated with the command from BASH http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4 For any Process, the input and error streams must read even if the data written to these streams is not used by the application. More... | |
void | runProcess () throws DENOPTIMException |
Run the process associated with the command. More... | |
String | getStandardOutput () |
Get the content of the standard output for the process. More... | |
String | getErrorOutput () |
Get the content of the error output for the process. More... | |
int | getExitCode () |
Get the exit code returned by the sub-process. More... | |
void | stopProcess () |
Private Attributes | |
int | exitCode |
transient Process | proc = null |
String | standardOutput |
Content of the standard output for the process. More... | |
String | errorOutput |
Content of the error output for the process. More... | |
String | id = null |
A user-assigned id for this task. More... | |
String | cmdStr = null |
Definition at line 32 of file ProcessHandler.java.
denoptim.task.ProcessHandler.ProcessHandler | ( | String | cmdStr, |
String | id | ||
) |
Definition at line 58 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.cmdStr, and denoptim.task.ProcessHandler.id.
String denoptim.task.ProcessHandler.getErrorOutput | ( | ) |
Get the content of the error output for the process.
Definition at line 268 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.errorOutput.
Referenced by denoptim.integration.tinker.ConformationalSearchPSSROT.performPSSROT(), and denoptim.task.FitnessTask.runExternalFitness().
int denoptim.task.ProcessHandler.getExitCode | ( | ) |
Get the exit code returned by the sub-process.
Definition at line 281 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.exitCode.
Referenced by denoptim.integration.tinker.ConformationalSearchPSSROT.performPSSROT(), and denoptim.task.FitnessTask.runExternalFitness().
String denoptim.task.ProcessHandler.getStandardOutput | ( | ) |
Get the content of the standard output for the process.
Definition at line 257 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.standardOutput.
void denoptim.task.ProcessHandler.runProcess | ( | ) | throws DENOPTIMException |
Run the process associated with the command.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4 For any Process, the input and error streams must read even if the data written to these streams is not used by the application. The generally accepted solution for this problem is a stream gobbler thread that does nothing but consume data from an input stream until stopped.
DENOPTIMException | |
Exception |
Definition at line 168 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.cmdStr, denoptim.task.ProcessHandler.errorOutput, denoptim.task.ProcessHandler.exitCode, denoptim.task.StreamGobbler.getMessages(), denoptim.task.ProcessHandler.proc, denoptim.task.StreamGobbler.sb, and denoptim.task.ProcessHandler.standardOutput.
Referenced by denoptim.task.FitnessTask.runExternalFitness().
void denoptim.task.ProcessHandler.runProcessInBASH | ( | ) | throws DENOPTIMException |
Run the process associated with the command from BASH http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4 For any Process, the input and error streams must read even if the data written to these streams is not used by the application.
The generally accepted solution for this problem is a stream gobbler thread that does nothing but consume data from an input stream until stopped.
DENOPTIMException | |
Exception |
Definition at line 77 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.cmdStr, denoptim.task.ProcessHandler.errorOutput, denoptim.task.ProcessHandler.exitCode, denoptim.task.StreamGobbler.getMessages(), denoptim.task.ProcessHandler.proc, denoptim.task.StreamGobbler.sb, and denoptim.task.ProcessHandler.standardOutput.
Referenced by denoptim.integration.tinker.ConformationalSearchPSSROT.performPSSROT().
void denoptim.task.ProcessHandler.stopProcess | ( | ) |
Definition at line 288 of file ProcessHandler.java.
References denoptim.task.ProcessHandler.proc.
Referenced by denoptim.task.Task.stopTask().
|
private |
Definition at line 53 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.ProcessHandler(), denoptim.task.ProcessHandler.runProcess(), and denoptim.task.ProcessHandler.runProcessInBASH().
|
private |
Content of the error output for the process.
Definition at line 45 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.getErrorOutput(), denoptim.task.ProcessHandler.runProcess(), and denoptim.task.ProcessHandler.runProcessInBASH().
|
private |
Definition at line 34 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.getExitCode(), denoptim.task.ProcessHandler.runProcess(), and denoptim.task.ProcessHandler.runProcessInBASH().
|
private |
A user-assigned id for this task.
Definition at line 51 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.ProcessHandler().
|
private |
Definition at line 35 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.runProcess(), denoptim.task.ProcessHandler.runProcessInBASH(), and denoptim.task.ProcessHandler.stopProcess().
|
private |
Content of the standard output for the process.
Definition at line 40 of file ProcessHandler.java.
Referenced by denoptim.task.ProcessHandler.getStandardOutput(), denoptim.task.ProcessHandler.runProcess(), and denoptim.task.ProcessHandler.runProcessInBASH().