Class ThrottleComputationQueueTaskDispatcher
- java.lang.Object
-
- hudson.model.queue.QueueTaskDispatcher
-
- com.cloudbees.hudson.plugins.folder.computed.ThrottleComputationQueueTaskDispatcher
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class ThrottleComputationQueueTaskDispatcher extends QueueTaskDispatcher
We need to be able to limit concurrent indexing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ThrottleComputationQueueTaskDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CauseOfBlockagecanRun(Queue.Item item)intcomputationCount()Gets the number of current computation tasks.intcomputationCount(Node node)Gets the number of current computation tasks on the specified node.intindexingCount()Deprecated.intindexingCount(Node node)Deprecated.-
Methods inherited from class hudson.model.queue.QueueTaskDispatcher
all, canTake, canTake
-
-
-
-
Method Detail
-
canRun
public CauseOfBlockage canRun(Queue.Item item)
- Overrides:
canRunin classQueueTaskDispatcher
-
indexingCount
@Deprecated public int indexingCount()
Deprecated.Gets the number of current computation tasks.- Returns:
- number of current computation tasks.
-
computationCount
public int computationCount()
Gets the number of current computation tasks.- Returns:
- number of current computation tasks.
-
indexingCount
@Deprecated public int indexingCount(@CheckForNull Node node)
Deprecated.Gets the number of current computation tasks on the specified node.- Parameters:
node- the node.- Returns:
- number of current computation tasks on the specified node.
-
computationCount
public int computationCount(@CheckForNull Node node)Gets the number of current computation tasks on the specified node.- Parameters:
node- the node.- Returns:
- number of current computation tasks on the specified node.
-
-