hudson.model
Interface ResourceActivity

All Known Subinterfaces:
BuildableItem, BuildableItemWithBuildWrappers, Queue.FlyweightTask, Queue.NonBlockingTask, Queue.Task, Queue.TransientTask, SCMedItem, SubTask
All Known Implementing Classes:
AbstractMavenProject, AbstractProject, AbstractQueueTask, AbstractSubTask, FreeStyleProject, MatrixConfiguration, MatrixProject, MavenModule, MavenModuleSet, Project, QueueTaskFilter

public interface ResourceActivity

Activity that requires certain resources for its execution.

Author:
Kohsuke Kawaguchi

Method Summary
 String getDisplayName()
          Used for rendering HTML.
 ResourceList getResourceList()
          Gets the list of Resources that this task requires.
 

Method Detail

getResourceList

ResourceList getResourceList()
Gets the list of Resources that this task requires. Used to make sure no two conflicting tasks run concurrently.

This method must always return the ResourceList that contains the exact same set of Resources.

If the activity doesn't lock any resources, just return new ResourceList().

Returns:
never null

getDisplayName

String getDisplayName()
Used for rendering HTML.



Copyright © 2004-2013. All Rights Reserved.