Package hudson.model
Interface ResourceActivity
-
- All Known Subinterfaces:
BuildableItem,BuildableItemWithBuildWrappers,ParameterizedJobMixIn.ParameterizedJob<JobT,RunT>,Queue.FlyweightTask,Queue.NonBlockingTask,Queue.Task,Queue.TransientTask,SCMedItem,SubTask
- All Known Implementing Classes:
AbstractProject,AbstractQueueTask,AbstractSubTask,FreeStyleProject,Project,QueueTaskFilter
public interface ResourceActivityActivity that requires certain resources for its execution.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetDisplayName()Used for rendering HTML.default ResourceListgetResourceList()Gets the list ofResources that this task requires.
-
-
-
Method Detail
-
getResourceList
default ResourceList getResourceList()
Gets the list ofResources that this task requires. Used to make sure no two conflicting tasks run concurrently.This method must always return the
ResourceListthat contains the exact same set ofResources.If the activity doesn't lock any resources, just return
ResourceList.EMPTY(or decline to override).- Returns:
- never null
-
getDisplayName
String getDisplayName()
Used for rendering HTML.
-
-