Class ConsoleOutputProcessOutput
java.lang.Object
com.github.fracpete.processoutput4j.output.AbstractProcessOutput
com.github.fracpete.processoutput4j.output.ConsoleOutputProcessOutput
- All Implemented Interfaces:
Serializable
A container class for the results obtained from executing a process.
- See Also:
-
Field Summary
FieldsFields inherited from class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
m_Command, m_Environment, m_ExitCode, m_Process, m_ReaderStdErr, m_ReaderStdOut, m_RunnableTimeout, m_TimedOut, m_TimeOut -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractProcessReaderConfigures the thread for stderr.protected AbstractProcessReaderConfigures the thread for stdout.static voidAllows the execution of a command through this process output scheme.Methods inherited from class com.github.fracpete.processoutput4j.output.AbstractProcessOutput
configureTimeOutMonitor, destroy, flush, getCommand, getEnvironment, getExitCode, getProcess, getTimeOut, hasSucceeded, hasTimedOut, initialize, monitor, monitor, monitor, monitor, monitor, setTimeOut, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDfor serialization.- See Also:
-
-
Constructor Details
-
ConsoleOutputProcessOutput
public ConsoleOutputProcessOutput()
-
-
Method Details
-
configureStdErr
Configures the thread for stderr.- Specified by:
configureStdErrin classAbstractProcessOutput- Returns:
- the configured thread, not yet started
-
configureStdOut
Configures the thread for stdout.- Specified by:
configureStdOutin classAbstractProcessOutput- Returns:
- the configured thread, not yet started
-
main
Allows the execution of a command through this process output scheme.- Parameters:
args- the command to launch- Throws:
Exception- if launching fails for some reason
-