Class FakeThreadPoolMasterService
java.lang.Object
org.elasticsearch.common.component.AbstractLifecycleComponent
org.elasticsearch.cluster.service.MasterService
org.elasticsearch.cluster.service.FakeThreadPoolMasterService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LifecycleComponent
,org.elasticsearch.core.Releasable
-
Field Summary
Fields inherited from class org.elasticsearch.cluster.service.MasterService
MASTER_SERVICE_SLOW_TASK_LOGGING_THRESHOLD_SETTING, MASTER_SERVICE_STARVATION_LOGGING_THRESHOLD_SETTING, STATE_UPDATE_ACTION_NAME, threadPool
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
Constructor Summary
ConstructorDescriptionFakeThreadPoolMasterService
(String nodeName, String serviceName, ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun) -
Method Summary
Modifier and TypeMethodDescriptionprotected PrioritizedEsThreadPoolExecutor
int
incrementVersion
(ClusterState clusterState) protected void
publish
(ClusterStatePublicationEvent clusterStatePublicationEvent, ClusterStatePublisher.AckListener ackListener, ActionListener<Void> publicationListener) protected ClusterStatePublisher.AckListener
wrapAckListener
(ClusterStatePublisher.AckListener ackListener) Methods inherited from class org.elasticsearch.cluster.service.MasterService
assertMasterUpdateOrTestThread, assertNotMasterUpdateThread, doClose, doStart, doStop, getClusterStateUpdateStats, getMaxTaskWaitTime, isMasterUpdateThread, isPublishFailureException, numberOfPendingTasks, pendingTasks, publicationMayFail, setClusterStatePublisher, setClusterStateSupplier, submitStateUpdateTask, submitUnbatchedStateUpdateTask
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, start, stop
-
Constructor Details
-
FakeThreadPoolMasterService
public FakeThreadPoolMasterService(String nodeName, String serviceName, ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun)
-
-
Method Details
-
createThreadPoolExecutor
- Overrides:
createThreadPoolExecutor
in classMasterService
-
getFakeMasterServicePendingTaskCount
public int getFakeMasterServicePendingTaskCount() -
incrementVersion
- Overrides:
incrementVersion
in classMasterService
-
publish
protected void publish(ClusterStatePublicationEvent clusterStatePublicationEvent, ClusterStatePublisher.AckListener ackListener, ActionListener<Void> publicationListener) - Overrides:
publish
in classMasterService
-
wrapAckListener
protected ClusterStatePublisher.AckListener wrapAckListener(ClusterStatePublisher.AckListener ackListener)
-