- All Known Subinterfaces:
LocalNodeMasterListener,TimeoutClusterStateListener
- All Known Implementing Classes:
CompatibilityVersionsFixupListener,CoordinationDiagnosticsService,DelayedAllocationService,FileSettingsService,GatewayService,HealthInfoCache,HealthPeriodicLogger,IndicesStore,InternalClusterInfoService,InternalSnapshotsInfoService,LocalHealthMonitor,MasterHistory,MasterNodeFileWatchingService,NodeFeaturesFixupListener,PeerRecoverySourceService,PersistentTasksClusterService,PersistentTasksNodeService,PluginShutdownService,ReadinessService,ResponseCollectorService,SnapshotShardsService,SystemIndexMappingUpdateService,SystemIndexMetadataUpgradeService,TemplateUpgradeService
public interface ClusterStateListener
A listener to be notified when a cluster state changes. The
clusterChanged(org.elasticsearch.cluster.ClusterChangedEvent) method is called after the cluster state becomes
visible via ClusterService.state(). See also ClusterStateApplier.-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when cluster state changes.
-
Method Details
-
clusterChanged
Called when cluster state changes.Cluster states are applied one-by-one which means they can be a performance bottleneck. Implementations of this method should therefore be fast, so please consider forking work into the background rather than doing everything inline.
-