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.
  • Constructor Details

    • ThrottleComputationQueueTaskDispatcher

      public ThrottleComputationQueueTaskDispatcher()
  • Method Details

    • canRun

      public CauseOfBlockage canRun(Queue.Item item)
      Overrides:
      canRun in class QueueTaskDispatcher
    • 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.