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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanRun(Queue.Item item) intGets the number of current computation tasks.intcomputationCount(Node node) Gets the number of current computation tasks on the specified node.intDeprecated.intindexingCount(Node node) Deprecated.Methods inherited from class hudson.model.queue.QueueTaskDispatcher
all, canTake, canTake
-
Constructor Details
-
ThrottleComputationQueueTaskDispatcher
public ThrottleComputationQueueTaskDispatcher()
-
-
Method Details
-
canRun
- Overrides:
canRunin 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()