org.hudsonci.utils.tasks
Class OperationSupport<T extends BuildStep>

java.lang.Object
  extended by org.hudsonci.utils.tasks.OperationSupport<T>
Direct Known Subclasses:
PerformOperation, PreBuildOperation

public abstract class OperationSupport<T extends BuildStep>
extends Object

Support for BuildStep operations.

Since:
2.1.0
Author:
Jason Dillon

Field Summary
protected  AbstractBuild<?,?> build
           
protected  BuildListener listener
           
protected  org.slf4j.Logger log
          Server-side logger.
protected  TaskListenerLogger logger
          Build console logger.
protected  org.slf4j.Logger muxlog
          Muxed server+build console logger.
protected  T owner
           
 
Constructor Summary
OperationSupport(T owner, AbstractBuild<?,?> build, BuildListener listener)
           
 
Method Summary
protected abstract  boolean doExecute()
           
protected  void onFailure(Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Server-side logger.


owner

protected final T extends BuildStep owner

build

protected final AbstractBuild<?,?> build

listener

protected final BuildListener listener

logger

protected final TaskListenerLogger logger
Build console logger.


muxlog

protected final org.slf4j.Logger muxlog
Muxed server+build console logger.

Constructor Detail

OperationSupport

public OperationSupport(T owner,
                        AbstractBuild<?,?> build,
                        BuildListener listener)
Method Detail

doExecute

protected abstract boolean doExecute()
                              throws Exception
Throws:
Exception

onFailure

protected void onFailure(Throwable cause)


Copyright © 2004-2011 Hudson. All Rights Reserved.