Class FakeThreadPoolClusterManagerService

java.lang.Object
org.opensearch.common.lifecycle.AbstractLifecycleComponent
org.opensearch.cluster.service.ClusterManagerService
org.opensearch.cluster.service.FakeThreadPoolClusterManagerService
All Implemented Interfaces:
Closeable, AutoCloseable, org.opensearch.common.lease.Releasable, org.opensearch.common.lifecycle.LifecycleComponent

public class FakeThreadPoolClusterManagerService extends org.opensearch.cluster.service.ClusterManagerService
  • Field Summary

    Fields inherited from class org.opensearch.cluster.service.ClusterManagerService

    CLUSTER_MANAGER_SERVICE_SLOW_TASK_LOGGING_THRESHOLD_SETTING, clusterManagerTaskThrottler, threadPool

    Fields inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent

    lifecycle
  • Constructor Summary

    Constructors
    Constructor
    Description
    FakeThreadPoolClusterManagerService(String nodeName, String serviceName, org.opensearch.threadpool.ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor
     
    int
     
    org.opensearch.cluster.ClusterState.Builder
    incrementVersion(org.opensearch.cluster.ClusterState clusterState)
     
    protected void
    publish(org.opensearch.cluster.ClusterChangedEvent clusterChangedEvent, org.opensearch.cluster.service.ClusterManagerService.TaskOutputs taskOutputs, long startTimeMillis)
     
    protected org.opensearch.cluster.coordination.ClusterStatePublisher.AckListener
    wrapAckListener(org.opensearch.cluster.coordination.ClusterStatePublisher.AckListener ackListener)
     

    Methods inherited from class org.opensearch.cluster.service.ClusterManagerService

    assertClusterManagerUpdateThread, assertNotClusterManagerUpdateThread, doClose, doStart, doStop, getClusterStateStats, getMaxTaskWaitTime, getMinNodeVersion, getThrottlingStats, numberOfPendingTasks, numberOfThrottledPendingTasks, pendingTasks, registerClusterManagerTask, setClusterStatePublisher, setClusterStateSupplier, submitStateUpdateTask, submitStateUpdateTask, submitStateUpdateTasks

    Methods inherited from class org.opensearch.common.lifecycle.AbstractLifecycleComponent

    addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FakeThreadPoolClusterManagerService

      public FakeThreadPoolClusterManagerService(String nodeName, String serviceName, org.opensearch.threadpool.ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun)
  • Method Details

    • createThreadPoolExecutor

      protected org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor createThreadPoolExecutor()
      Overrides:
      createThreadPoolExecutor in class org.opensearch.cluster.service.ClusterManagerService
    • getFakeClusterManagerServicePendingTaskCount

      public int getFakeClusterManagerServicePendingTaskCount()
    • incrementVersion

      public org.opensearch.cluster.ClusterState.Builder incrementVersion(org.opensearch.cluster.ClusterState clusterState)
      Overrides:
      incrementVersion in class org.opensearch.cluster.service.ClusterManagerService
    • publish

      protected void publish(org.opensearch.cluster.ClusterChangedEvent clusterChangedEvent, org.opensearch.cluster.service.ClusterManagerService.TaskOutputs taskOutputs, long startTimeMillis)
      Overrides:
      publish in class org.opensearch.cluster.service.ClusterManagerService
    • wrapAckListener

      protected org.opensearch.cluster.coordination.ClusterStatePublisher.AckListener wrapAckListener(org.opensearch.cluster.coordination.ClusterStatePublisher.AckListener ackListener)