org.harpreet.internetmeme
Class MemeRecorder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by org.harpreet.internetmeme.MemeRecorder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class MemeRecorder
extends hudson.tasks.Recorder

This class associates a MemeAction to a job or a build.

Author:
clifanno, Harpreet Singh

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
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MemeRecorder()
          Constructs a MemeRecorder
 
Method Summary
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
          Gets the MemeAction 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 MemeAction 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
getProjectActions, 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
getProjectActions, prebuild
 

Constructor Detail

MemeRecorder

@DataBoundConstructor
public MemeRecorder()
Constructs a MemeRecorder

Method Detail

getProjectAction

public final hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Gets the MemeAction 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 InterruptedException,
                             IOException
Adds MemeAction 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:
InterruptedException - when there's an interruption
IOException - when there's an IO error

getRequiredMonitorService

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

Returns:
the BuildStepMonitor


Copyright © 2004-2014. All Rights Reserved.