Package hudson.model
Interface ResourceActivity
- All Superinterfaces:
ModelObject
- 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
Activity that requires certain resources for its execution.
- Author:
- Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceList
Gets the list ofResource
s that this task requires.Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Method Details
-
getResourceList
Gets the list ofResource
s 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 ofResource
s.If the activity doesn't lock any resources, just return
ResourceList.EMPTY
(or decline to override).- Returns:
- never null
-