Interface ProcessListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Subinterfaces:
CommandExecution
- All Known Implementing Classes:
LoggingProcessListener
,LogLastLinesProcessListener
,ProcessListenerAdapter
public interface ProcessListener extends java.util.EventListener
Listener interface for notification from running process To implement this interface, extendProcessListenerAdapter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onErrorOutput(java.lang.String text)
process error outputvoid
onStandardOutput(java.lang.String text)
process standard outputvoid
processFinished(int exitCode)
Process finished, terminated or failed to start.void
processStarted(java.lang.String programCommandLine, java.io.File workingDirectory)
Process was started.*
-
-
-
Method Detail
-
onStandardOutput
void onStandardOutput(@NotNull java.lang.String text)
process standard output- Parameters:
text
- process stdout output text
-
onErrorOutput
void onErrorOutput(@NotNull java.lang.String text)
process error output- Parameters:
text
- process stderr output text
-
processStarted
void processStarted(@NotNull java.lang.String programCommandLine, @NotNull java.io.File workingDirectory)
Process was started.*- Parameters:
programCommandLine
- program commandline to log. The actual commandline was collected as list of arguments and sent to java api as the list.workingDirectory
- process working directory
-
processFinished
void processFinished(int exitCode)
Process finished, terminated or failed to start. Called only ifprocessStarted(String, java.io.File)
was called before- Parameters:
exitCode
- resulting exit code of the process
-
-