jetbrains.buildServer.agent.runner
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, extend 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.*
 

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 - 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

void processFinished(int exitCode)
Process finished, terminated or failed to start. Called only if processStarted(String, java.io.File) was called before

Parameters:
exitCode - resulting exit code of the process