public class IdAllocator
extends hudson.tasks.BuildWrapper
| Modifier and Type | Class and Description |
|---|---|
static class |
IdAllocator.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
static IdAllocator.DescriptorImpl |
DESCRIPTOR |
static List<RessourcesMonitor> |
listRessources |
| Constructor and Description |
|---|
IdAllocator(IdType[] ids) |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteList(String ProjectName)
This method removes all the resources of a project (Job)
|
hudson.model.Descriptor<hudson.tasks.BuildWrapper> |
getDescriptor() |
IdType[] |
getIds() |
static List<RessourcesMonitor> |
getListRessources() |
void |
setIds(IdType[] ids) |
static void |
setListRessources(List<RessourcesMonitor> list) |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
static void |
updateBuild(String ProjectName,
String resourceName,
boolean build)
This method changes the state of a resource (in use or not)
|
static void |
updateList(String oldProjecName,
String newProjectName)
This method update Job name
|
public static List<RessourcesMonitor> listRessources
@Extension public static final IdAllocator.DescriptorImpl DESCRIPTOR
public IdAllocator(IdType[] ids)
public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
setUp in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic IdType[] getIds()
public void setIds(IdType[] ids)
public static List<RessourcesMonitor> getListRessources()
public static void setListRessources(List<RessourcesMonitor> list)
public static void updateList(String oldProjecName, String newProjectName)
oldProjecName - : Old project namenewProjectName - : New project namepublic static void deleteList(String ProjectName)
ProjectName - : Project namepublic static void updateBuild(String ProjectName, String resourceName, boolean build)
ProjectName - : Project nameresourceName - : Resource namebuild - : resource state (true = in use)public hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2004-2012. All Rights Reserved.