Module org.elasticsearch.server
Package org.elasticsearch.snapshots
Class InternalSnapshotsInfoService
java.lang.Object
org.elasticsearch.snapshots.InternalSnapshotsInfoService
- All Implemented Interfaces:
ClusterStateListener
,SnapshotsInfoService
public final class InternalSnapshotsInfoService
extends Object
implements ClusterStateListener, SnapshotsInfoService
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionInternalSnapshotsInfoService
(Settings settings, ClusterService clusterService, RepositoriesService repositoriesService, Supplier<RerouteService> rerouteServiceSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when cluster state changes.
-
Field Details
-
INTERNAL_SNAPSHOT_INFO_MAX_CONCURRENT_FETCHES_SETTING
-
-
Constructor Details
-
InternalSnapshotsInfoService
public InternalSnapshotsInfoService(Settings settings, ClusterService clusterService, RepositoriesService repositoriesService, Supplier<RerouteService> rerouteServiceSupplier)
-
-
Method Details
-
snapshotShardSizes
- Specified by:
snapshotShardSizes
in interfaceSnapshotsInfoService
-
clusterChanged
Description copied from interface:ClusterStateListener
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.
- Specified by:
clusterChanged
in interfaceClusterStateListener
-