hudson.plugins.chucknorris
Class CordellWalkerRecorder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.plugins.chucknorris.CordellWalkerRecorder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class CordellWalkerRecorder
extends hudson.tasks.Recorder

This class associates a RoundhouseAction to a job or a build. For more info on Cordell Walker, check out http://www.imdb.com/character/ch0038386/.

Author:
cliffano

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
private  FactGenerator factGenerator
          Fact generator.
private static java.util.logging.Logger LOGGER
          Logger.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
CordellWalkerRecorder()
          Constructs a CordellWalkerRecorder with default FactGenerator.
CordellWalkerRecorder(FactGenerator factGenerator)
          Constructs a CordellWalkerRecorder with specified FactGenerator.
 
Method Summary
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          Gets the RoundhouseAction as the project action.
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
          Gets the required monitor service.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          Adds RoundhouseAction to the build actions.
 
Methods inherited from class hudson.tasks.Recorder
getDescriptor
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
prebuild
 

Field Detail

LOGGER

private static final java.util.logging.Logger LOGGER
Logger.


factGenerator

private FactGenerator factGenerator
Fact generator.

Constructor Detail

CordellWalkerRecorder

@DataBoundConstructor
public CordellWalkerRecorder()
Constructs a CordellWalkerRecorder with default FactGenerator.


CordellWalkerRecorder

public CordellWalkerRecorder(FactGenerator factGenerator)
Constructs a CordellWalkerRecorder with specified FactGenerator.

Parameters:
factGenerator - the fact generator
Method Detail

getProjectAction

public final hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Gets the RoundhouseAction as the project action. This is applicable for each job and only when there's at least one build in the job.

Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
project - the project
Returns:
the project action

perform

public final boolean perform(hudson.model.AbstractBuild<?,?> build,
                             hudson.Launcher launcher,
                             hudson.model.BuildListener listener)
                      throws java.lang.InterruptedException,
                             java.io.IOException
Adds RoundhouseAction to the build actions. This is applicable for each build.

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
build - the build
launcher - the launcher
listener - the listener
Returns:
true
Throws:
java.lang.InterruptedException - when there's an interruption
java.io.IOException - when there's an IO error

getRequiredMonitorService

public final hudson.tasks.BuildStepMonitor getRequiredMonitorService()
Gets the required monitor service.

Returns:
the BuildStepMonitor


Copyright © 2009. All Rights Reserved.