Package jenkins.advancedqueue
Class JobGroup
- java.lang.Object
-
- jenkins.advancedqueue.JobGroup
-
public class JobGroup extends Object
Describes job group for Advanced Queue Sorter.- Since:
- 2.0
- Author:
- Magnus Sandberg, Oleg Nenashev
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobGroup.PriorityStrategyHolder
-
Constructor Summary
Constructors Constructor Description JobGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getDescription()
int
getId()
JobInclusionStrategy
getJobGroupStrategy()
int
getPriority()
List<JobGroup.PriorityStrategyHolder>
getPriorityStrategies()
String
getView()
Deprecated.Used in 2.x now replaced with dynamicjobGroupStrategy
, will return the viewboolean
isRunExclusive()
boolean
isUsePriorityStrategies()
void
setDescription(String description)
void
setId(int id)
void
setJobGroupStrategy(JobInclusionStrategy jobGroupStrategy)
void
setPriority(int priority)
void
setPriorityStrategies(List<? extends PriorityStrategy> priorityStrategies)
void
setRunExclusive(boolean runExclusive)
void
setUsePriorityStrategies(boolean usePriorityStrategies)
-
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id
-
setId
@DataBoundSetter public void setId(int id)
- Parameters:
id
- the id to set
-
getDescription
@NonNull public String getDescription()
-
setDescription
@DataBoundSetter public void setDescription(String description)
-
getPriority
public int getPriority()
- Returns:
- the priority
-
getView
@Deprecated @CheckForNull public String getView()
Deprecated.Used in 2.x now replaced with dynamicjobGroupStrategy
, will return the view- Returns:
- the viewName or
null
if the strategy is notViewBasedJobInclusionStrategy
-
setPriority
@DataBoundSetter public void setPriority(int priority)
- Parameters:
priority
- the priority to set
-
getJobGroupStrategy
public JobInclusionStrategy getJobGroupStrategy()
-
setJobGroupStrategy
@DataBoundSetter public void setJobGroupStrategy(JobInclusionStrategy jobGroupStrategy)
-
isRunExclusive
public boolean isRunExclusive()
-
setRunExclusive
@DataBoundSetter public void setRunExclusive(boolean runExclusive)
-
isUsePriorityStrategies
public boolean isUsePriorityStrategies()
-
setUsePriorityStrategies
@DataBoundSetter public void setUsePriorityStrategies(boolean usePriorityStrategies)
-
getPriorityStrategies
public List<JobGroup.PriorityStrategyHolder> getPriorityStrategies()
-
setPriorityStrategies
@DataBoundSetter public void setPriorityStrategies(List<? extends PriorityStrategy> priorityStrategies)
-
-