Class ThrottleComputationQueueTaskDispatcher
java.lang.Object
hudson.model.queue.QueueTaskDispatcher
com.cloudbees.hudson.plugins.folder.computed.ThrottleComputationQueueTaskDispatcher
- All Implemented Interfaces:
ExtensionPoint
We need to be able to limit concurrent indexing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncanRun
(Queue.Item item) int
Gets the number of current computation tasks.int
computationCount
(Node node) Gets the number of current computation tasks on the specified node.int
Deprecated.int
indexingCount
(Node node) Deprecated.Methods inherited from class hudson.model.queue.QueueTaskDispatcher
all, canTake, canTake
-
Constructor Details
-
ThrottleComputationQueueTaskDispatcher
public ThrottleComputationQueueTaskDispatcher()
-
-
Method Details
-
canRun
- Overrides:
canRun
in classQueueTaskDispatcher
-
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.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
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()