org.jvnet.hudson.plugins.exclusion
Class IdAllocator

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapper
          extended by org.jvnet.hudson.plugins.exclusion.IdAllocator
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.BuildWrapper>

public class IdAllocator
extends hudson.tasks.BuildWrapper

first author Kohsuke Kawaguchi fork by Anthony Roux


Nested Class Summary
static class IdAllocator.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
hudson.tasks.BuildWrapper.Environment
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static IdAllocator.DescriptorImpl DESCRIPTOR
           
static List<RessourcesMonitor> listRessources
           
 
Constructor Summary
IdAllocator(IdType[] ids)
           
 
Method Summary
static void deleteList(String ProjectName)
          Cette methode permet de supprimer toutes les ressources d'un projet (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)
          Cette m�thode change l'�tat d'une ressource (en cours d'utilisation ou non)
static void updateList(String oldProjecName, String newProjectName)
           
 
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listRessources

public static List<RessourcesMonitor> listRessources

DESCRIPTOR

@Extension
public static final IdAllocator.DescriptorImpl DESCRIPTOR
Constructor Detail

IdAllocator

public IdAllocator(IdType[] ids)
Method Detail

setUp

public hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
                                                   hudson.Launcher launcher,
                                                   hudson.model.BuildListener listener)
                                            throws IOException,
                                                   InterruptedException
Overrides:
setUp in class hudson.tasks.BuildWrapper
Throws:
IOException
InterruptedException

getIds

public IdType[] getIds()

setIds

public void setIds(IdType[] ids)

getListRessources

public static List<RessourcesMonitor> getListRessources()

setListRessources

public static void setListRessources(List<RessourcesMonitor> list)

updateList

public static void updateList(String oldProjecName,
                              String newProjectName)

deleteList

public static void deleteList(String ProjectName)
Cette methode permet de supprimer toutes les ressources d'un projet (Job)

Parameters:
ProjectName - : Nom du projet

updateBuild

public static void updateBuild(String ProjectName,
                               String resourceName,
                               boolean build)
Cette m�thode change l'�tat d'une ressource (en cours d'utilisation ou non)

Parameters:
ProjectName - : Nom du projet
resourceName - : Resource � modifie
build - : etat de la ressource (true = en cours d'utilisation)

getDescriptor

public hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>
Overrides:
getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>


Copyright © 2004-2012. All Rights Reserved.