Class RestoreClusterStateListener
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreClusterStateListener
- All Implemented Interfaces:
ClusterStateListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clusterChanged(ClusterChangedEvent changedEvent)
Called when cluster state changes.static void
createAndRegisterListener(ClusterService clusterService, RestoreService.RestoreCompletionResponse response, ActionListener<RestoreSnapshotResponse> listener)
Creates a cluster state listener and registers it with the cluster service.
-
Method Details
-
clusterChanged
Description copied from interface:ClusterStateListener
Called when cluster state changes.- Specified by:
clusterChanged
in interfaceClusterStateListener
-
createAndRegisterListener
public static void createAndRegisterListener(ClusterService clusterService, RestoreService.RestoreCompletionResponse response, ActionListener<RestoreSnapshotResponse> listener)Creates a cluster state listener and registers it with the cluster service. The listener passed as a parameter will be called when the restore is complete.
-