hudson.plugins.batch_task
Class BatchTaskProperty

java.lang.Object
  extended by hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
      extended by hudson.plugins.batch_task.BatchTaskProperty
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep

public class BatchTaskProperty
extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

Batch tasks added as JobProperty.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class BatchTaskProperty.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
static BatchTaskProperty.DescriptorImpl DESCRIPTOR
           
 
Fields inherited from class hudson.model.JobProperty
owner
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
BatchTaskProperty(BatchTask... tasks)
           
BatchTaskProperty(java.util.Collection<BatchTask> tasks)
           
 
Method Summary
 BatchTask findNearestTask(java.lang.String name)
          Finds the BatchTask that has the closest name.
 BatchTaskProperty.DescriptorImpl getDescriptor()
           
 hudson.model.Action getJobAction(hudson.model.AbstractProject<?,?> job)
           
 hudson.model.AbstractProject<?,?> getOwner()
           
 BatchTask getTask(java.lang.String name)
           
 java.util.List<BatchTask> getTasks()
           
 void removeTask(BatchTask t)
           
protected  void setOwner(hudson.model.AbstractProject<?,?> owner)
           
 
Methods inherited from class hudson.model.JobProperty
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR

public static final BatchTaskProperty.DescriptorImpl DESCRIPTOR
Constructor Detail

BatchTaskProperty

public BatchTaskProperty(BatchTask... tasks)

BatchTaskProperty

public BatchTaskProperty(java.util.Collection<BatchTask> tasks)
Method Detail

setOwner

protected void setOwner(hudson.model.AbstractProject<?,?> owner)
Overrides:
setOwner in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

getOwner

public hudson.model.AbstractProject<?,?> getOwner()

getTask

public BatchTask getTask(java.lang.String name)

getTasks

public java.util.List<BatchTask> getTasks()

removeTask

public void removeTask(BatchTask t)
                throws java.io.IOException
Throws:
java.io.IOException

findNearestTask

public BatchTask findNearestTask(java.lang.String name)
Finds the BatchTask that has the closest name. Used for error diagnostics.


getJobAction

public hudson.model.Action getJobAction(hudson.model.AbstractProject<?,?> job)
Overrides:
getJobAction in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>

getDescriptor

public BatchTaskProperty.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.JobProperty<?>>
Overrides:
getDescriptor in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>


Copyright © 2009. All Rights Reserved.