com.xebialabs.deployit
Class StepExecutionContextCallbackHandler

java.lang.Object
  extended by com.xebialabs.deployit.StepExecutionContextCallbackHandler
All Implemented Interfaces:
CommandExecutionCallbackHandler

public class StepExecutionContextCallbackHandler
extends java.lang.Object
implements CommandExecutionCallbackHandler

A CommandExecutionCallbackHandler that logs the output to a StepExecutionContext.


Constructor Summary
StepExecutionContextCallbackHandler(StepExecutionContext ctx)
           
 
Method Summary
 void handleErrorLine(java.lang.String line)
          Invoked when an executed command generated a line of error (stderr).
 void handleOutput(char c)
          Invoked when an executed command generates a character of output (stdout).
 void handleOutputLine(java.lang.String line)
          Invoked when an executed command generated a line of output (stdout).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepExecutionContextCallbackHandler

public StepExecutionContextCallbackHandler(StepExecutionContext ctx)
Method Detail

handleOutputLine

public void handleOutputLine(java.lang.String line)
Description copied from interface: CommandExecutionCallbackHandler
Invoked when an executed command generated a line of output (stdout).

Specified by:
handleOutputLine in interface CommandExecutionCallbackHandler
Parameters:
line - the line of output generated.

handleErrorLine

public void handleErrorLine(java.lang.String line)
Description copied from interface: CommandExecutionCallbackHandler
Invoked when an executed command generated a line of error (stderr).

Specified by:
handleErrorLine in interface CommandExecutionCallbackHandler
Parameters:
line - the line of output generated.

handleOutput

public void handleOutput(char c)
Description copied from interface: CommandExecutionCallbackHandler
Invoked when an executed command generates a character of output (stdout).

Specified by:
handleOutput in interface CommandExecutionCallbackHandler
Parameters:
c - the character of output generated.


Copyright © 2010. All Rights Reserved.