Class TransportGetRepositoriesAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeReadAction<GetRepositoriesRequest,GetRepositoriesResponse>
org.elasticsearch.action.admin.cluster.repositories.get.TransportGetRepositoriesAction
public class TransportGetRepositoriesAction
extends TransportMasterNodeReadAction<GetRepositoriesRequest,GetRepositoriesResponse>
Transport action for get repositories 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
ConstructorDescriptionTransportGetRepositoriesAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(GetRepositoriesRequest request, ClusterState state)
static List<RepositoryMetadata>
getRepositories(ClusterState state, String[] repoNames)
Get repository metadata for given repository names from given cluster state.protected void
masterOperation(GetRepositoriesRequest request, ClusterState state, ActionListener<GetRepositoriesResponse> listener)
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeReadAction
localExecute
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, masterOperation
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportGetRepositoriesAction
@Inject public TransportGetRepositoriesAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<GetRepositoriesRequest,GetRepositoriesResponse>
-
masterOperation
protected void masterOperation(GetRepositoriesRequest request, ClusterState state, ActionListener<GetRepositoriesResponse> listener)- Specified by:
masterOperation
in classTransportMasterNodeAction<GetRepositoriesRequest,GetRepositoriesResponse>
-
getRepositories
Get repository metadata for given repository names from given cluster state.- Parameters:
state
- Cluster staterepoNames
- Repository names or patterns to get metadata for- Returns:
- list of repository metadata
-