Class SynchronousProcess
- java.lang.Object
-
- com.github.toolarium.system.command.process.impl.AbstractProcess
-
- com.github.toolarium.system.command.process.impl.SynchronousProcess
-
- All Implemented Interfaces:
IProcess
,ISynchronousProcess
public class SynchronousProcess extends AbstractProcess implements ISynchronousProcess
Implements theISynchronousProcess
.
-
-
Constructor Summary
Constructors Constructor Description SynchronousProcess(ISystemCommandGroupList systemCommandGroupList, java.lang.Long pid, java.time.Instant startTime, java.time.Duration totalCpuDuration, java.lang.Integer exitValue, java.lang.String out, java.lang.String errorOut)
Constructor for Process
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorOutput()
Get the error outputjava.lang.String
getOutput()
Get the standard outputjava.lang.String
toString()
-
Methods inherited from class com.github.toolarium.system.command.process.impl.AbstractProcess
equals, getExitValue, getPid, getStartTime, getSystemCommandGroupList, getTotalCpuDuration, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.toolarium.system.command.process.IProcess
getExitValue, getPid, getStartTime, getSystemCommandGroupList, getTotalCpuDuration
-
-
-
-
Constructor Detail
-
SynchronousProcess
public SynchronousProcess(ISystemCommandGroupList systemCommandGroupList, java.lang.Long pid, java.time.Instant startTime, java.time.Duration totalCpuDuration, java.lang.Integer exitValue, java.lang.String out, java.lang.String errorOut)
Constructor for Process- Parameters:
systemCommandGroupList
- the system command group listpid
- the pidstartTime
- the start timetotalCpuDuration
- the total cpu durationexitValue
- the exist valueout
- the outputerrorOut
- the error output
-
-
Method Detail
-
getOutput
public java.lang.String getOutput()
Description copied from interface:ISynchronousProcess
Get the standard output- Specified by:
getOutput
in interfaceISynchronousProcess
- Returns:
- the standard output
- See Also:
ISynchronousProcess.getOutput()
-
getErrorOutput
public java.lang.String getErrorOutput()
Description copied from interface:ISynchronousProcess
Get the error output- Specified by:
getErrorOutput
in interfaceISynchronousProcess
- Returns:
- the error output
- See Also:
ISynchronousProcess.getErrorOutput()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractProcess
- See Also:
AbstractProcess.toString()
-
-