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, threadPoolFields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle -
Constructor Summary
ConstructorsConstructorDescriptionFakeThreadPoolMasterService(String nodeName, String serviceName, ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun) -
Method Summary
Modifier and TypeMethodDescriptionprotected PrioritizedEsThreadPoolExecutorintincrementVersion(ClusterState clusterState) protected voidpublish(ClusterStatePublicationEvent clusterStatePublicationEvent, org.elasticsearch.cluster.service.MasterService.TaskOutputs taskOutputs) protected ClusterStatePublisher.AckListenerwrapAckListener(ClusterStatePublisher.AckListener ackListener) Methods inherited from class org.elasticsearch.cluster.service.MasterService
assertMasterUpdateThread, assertNotMasterUpdateThread, doClose, doStart, doStop, getClusterStateUpdateStats, getMaxTaskWaitTime, isMasterUpdateThread, numberOfPendingTasks, pendingTasks, publicationMayFail, setClusterStatePublisher, setClusterStateSupplier, submitStateUpdateTask, submitStateUpdateTask, submitStateUpdateTasksMethods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Constructor Details
-
FakeThreadPoolMasterService
public FakeThreadPoolMasterService(String nodeName, String serviceName, ThreadPool threadPool, Consumer<Runnable> onTaskAvailableToRun)
-
-
Method Details
-
createThreadPoolExecutor
- Overrides:
createThreadPoolExecutorin classMasterService
-
getFakeMasterServicePendingTaskCount
public int getFakeMasterServicePendingTaskCount() -
incrementVersion
- Overrides:
incrementVersionin classMasterService
-
publish
protected void publish(ClusterStatePublicationEvent clusterStatePublicationEvent, org.elasticsearch.cluster.service.MasterService.TaskOutputs taskOutputs) - Overrides:
publishin classMasterService
-
wrapAckListener
protected ClusterStatePublisher.AckListener wrapAckListener(ClusterStatePublisher.AckListener ackListener)
-