Package jenkins.advancedqueue.sorter
Class ItemInfo
- java.lang.Object
-
- jenkins.advancedqueue.sorter.ItemInfo
-
- All Implemented Interfaces:
Comparable<ItemInfo>
,DecisionLogger
,PriorityConfigurationCallback
,SorterStrategyCallback
public class ItemInfo extends Object implements PriorityConfigurationCallback, DecisionLogger, SorterStrategyCallback, Comparable<ItemInfo>
Used to store info about a Queue.Item and related information calculated by the Plugin- Since:
- 2.3
- Author:
- Magnus Sandberg
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriorityConfigurationCallback
addDecisionLog(int indent, String log)
int
compareTo(ItemInfo o)
boolean
equals(Object obj)
String
getDescisionLog()
long
getInQueueSince()
long
getItemId()
ItemStatus
getItemStatus()
int
getJobGroupId()
String
getJobName()
int
getPriority()
PriorityStrategy
getPriorityStrategy()
long
getSortableInQueueSince()
float
getWeight()
int
hashCode()
void
setBlocked()
void
setBuildable()
PriorityConfigurationCallback
setPrioritySelection(int priority)
PriorityConfigurationCallback
setPrioritySelection(int priority, int jobGroupId, PriorityStrategy reason)
PriorityConfigurationCallback
setPrioritySelection(int priority, long sortAsInQueueSince, int jobGroupId, PriorityStrategy reason)
SorterStrategyCallback
setWeightSelection(float weight)
String
toString()
-
-
-
Method Detail
-
setPrioritySelection
public PriorityConfigurationCallback setPrioritySelection(int priority, int jobGroupId, PriorityStrategy reason)
- Specified by:
setPrioritySelection
in interfacePriorityConfigurationCallback
-
setPrioritySelection
public PriorityConfigurationCallback setPrioritySelection(int priority, long sortAsInQueueSince, int jobGroupId, PriorityStrategy reason)
- Specified by:
setPrioritySelection
in interfacePriorityConfigurationCallback
-
addDecisionLog
public PriorityConfigurationCallback addDecisionLog(int indent, String log)
- Specified by:
addDecisionLog
in interfaceDecisionLogger
-
setPrioritySelection
public PriorityConfigurationCallback setPrioritySelection(int priority)
- Specified by:
setPrioritySelection
in interfacePriorityConfigurationCallback
-
setWeightSelection
public SorterStrategyCallback setWeightSelection(float weight)
- Specified by:
setWeightSelection
in interfaceSorterStrategyCallback
-
setBuildable
public void setBuildable()
-
setBlocked
public void setBlocked()
-
getItemId
public long getItemId()
-
getInQueueSince
public long getInQueueSince()
-
getSortableInQueueSince
public long getSortableInQueueSince()
-
getJobGroupId
public int getJobGroupId()
-
getPriorityStrategy
public PriorityStrategy getPriorityStrategy()
-
getJobName
public String getJobName()
-
getWeight
public float getWeight()
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceSorterStrategyCallback
-
getItemStatus
public ItemStatus getItemStatus()
-
compareTo
public int compareTo(ItemInfo o)
- Specified by:
compareTo
in interfaceComparable<ItemInfo>
-
getDescisionLog
public String getDescisionLog()
-
-