Module org.elasticsearch.server
Class RestoreClusterStateListener
java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreClusterStateListener
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createAndRegisterListener
(ClusterService clusterService, RestoreService.RestoreCompletionResponse response, ActionListener<RestoreSnapshotResponse> listener, ThreadContext threadContext) Creates a cluster state listener and registers it with the cluster service.
-
Method Details
-
createAndRegisterListener
public static void createAndRegisterListener(ClusterService clusterService, RestoreService.RestoreCompletionResponse response, ActionListener<RestoreSnapshotResponse> listener, ThreadContext threadContext) 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.
-