jetbrains.buildServer.agent.runner
Class ProcessListenerAdapter

java.lang.Object
  extended by 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
ProcessListenerAdapter()
           
 
Method Summary
 void onErrorOutput(java.lang.String text)
          process error output
 void onStandardOutput(java.lang.String text)
          process standard output
 void processFinished(int exitCode)
          Process finished, terminated or failed to start.
 void processStarted(java.lang.String programCommandLine, java.io.File workingDirectory)
          Process was started.*
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessListenerAdapter

public ProcessListenerAdapter()
Method Detail

onStandardOutput

public void onStandardOutput(@NotNull
                             java.lang.String text)
Description copied from interface: ProcessListener
process standard output

Specified by:
onStandardOutput in interface ProcessListener
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 interface ProcessListener
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 interface ProcessListener
Parameters:
programCommandLine - programm commandline to log. The actual commandline was collectes 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 if ProcessListener.processStarted(String, java.io.File) was called before

Specified by:
processFinished in interface ProcessListener
Parameters:
exitCode - resulting exit code of the process