@Extension
public class LockableResourcesManager
extends jenkins.model.GlobalConfiguration
| Constructor and Description |
|---|
LockableResourcesManager() |
all, getCategory, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic List<LockableResource> getResources()
public List<LockableResource> getResourcesFromProject(String fullName)
public List<LockableResource> getResourcesFromBuild(hudson.model.AbstractBuild<?,?> build)
public int getFreeResourceAmount(String label)
public List<LockableResource> getResourcesWithLabel(String label)
public int getDefaultPriority()
public String getPriorityParameterName()
public LockableResource fromName(String resourceName)
public boolean queue(List<LockableResource> resources, int queueItemId)
public List<LockableResource> queue(LockableResourcesStruct requiredResources, int queueItemId, String queueItemProject, int number, Logger log)
public boolean lock(List<LockableResource> resources, hudson.model.AbstractBuild<?,?> build)
public void unlock(List<LockableResource> resources, hudson.model.AbstractBuild<?,?> build)
public boolean reserve(List<LockableResource> resources, String userName)
public void unreserve(List<LockableResource> resources)
public String getDisplayName()
getDisplayName in class jenkins.model.GlobalConfigurationpublic void reset(List<LockableResource> resources)
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic static LockableResourcesManager get()
Copyright © 2004-2015. All Rights Reserved.