Class ProcessListenerAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.runner.ProcessListenerAdapter
-
- All Implemented Interfaces:
java.util.EventListener
,ProcessListener
- Direct Known Subclasses:
LoggingProcessListener
,LogLastLinesProcessListener
public class ProcessListenerAdapter extends java.lang.Object implements ProcessListener
- Since:
- 6.0
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description ProcessListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete 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
public void onStandardOutput(@NotNull java.lang.String text)
Description copied from interface:ProcessListener
process standard output- Specified by:
onStandardOutput
in interfaceProcessListener
- Parameters:
text
- process stdout output text
-
onErrorOutput
public void onErrorOutput(@NotNull java.lang.String text)
Description copied from interface:ProcessListener
process error output- Specified by:
onErrorOutput
in interfaceProcessListener
- Parameters:
text
- process stderr output text
-
processStarted
public void processStarted(@NotNull java.lang.String programCommandLine, @NotNull java.io.File workingDirectory)
Description copied from interface:ProcessListener
Process was started.*- Specified by:
processStarted
in interfaceProcessListener
- 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
public void processFinished(int exitCode)
Description copied from interface:ProcessListener
Process finished, terminated or failed to start. Called only ifProcessListener.processStarted(String, java.io.File)
was called before- Specified by:
processFinished
in interfaceProcessListener
- Parameters:
exitCode
- resulting exit code of the process
-
-