Class TransportGetSnapshotsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<GetSnapshotsRequest,GetSnapshotsResponse>
org.elasticsearch.action.admin.cluster.snapshots.get.TransportGetSnapshotsAction
public class TransportGetSnapshotsAction
extends TransportMasterNodeAction<GetSnapshotsRequest,GetSnapshotsResponse>
Transport Action for get snapshots operation
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager
-
Constructor Summary
ConstructorDescriptionTransportGetSnapshotsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, RepositoriesService repositoriesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(GetSnapshotsRequest request, ClusterState state)
protected void
masterOperation(GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener)
protected void
masterOperation(Task task, GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener)
Override this operation if access to the task parameter is neededMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportGetSnapshotsAction
@Inject public TransportGetSnapshotsAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, RepositoriesService repositoriesService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<GetSnapshotsRequest,GetSnapshotsResponse>
-
masterOperation
protected void masterOperation(GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener) throws Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<GetSnapshotsRequest,GetSnapshotsResponse>
- Throws:
Exception
-
masterOperation
protected void masterOperation(Task task, GetSnapshotsRequest request, ClusterState state, ActionListener<GetSnapshotsResponse> listener)Description copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<GetSnapshotsRequest,GetSnapshotsResponse>
-