Module org.elasticsearch.server
Class TransportGetIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<GetIndexRequest,GetIndexResponse>
org.elasticsearch.action.support.local.TransportLocalClusterStateAction<GetIndexRequest,GetIndexResponse>
org.elasticsearch.action.support.local.TransportLocalProjectMetadataAction<GetIndexRequest,GetIndexResponse>
org.elasticsearch.action.admin.indices.get.TransportGetIndexAction
public class TransportGetIndexAction
extends TransportLocalProjectMetadataAction<GetIndexRequest,GetIndexResponse>
Get index action.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
clusterService, executorFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGetIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SettingsFilter settingsFilter, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService, IndexScopedSettings indexScopedSettings, ProjectResolver projectResolver) NB prior to 9.1 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(GetIndexRequest request, ProjectState state) protected voidlocalClusterStateOperation(Task task, GetIndexRequest request, ProjectState state, ActionListener<GetIndexResponse> listener) Methods inherited from class org.elasticsearch.action.support.local.TransportLocalProjectMetadataAction
checkBlock, localClusterStateOperationMethods inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
doExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportGetIndexAction
@Inject public TransportGetIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, SettingsFilter settingsFilter, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService, IndexScopedSettings indexScopedSettings, ProjectResolver projectResolver) NB prior to 9.1 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely.
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportLocalProjectMetadataAction<GetIndexRequest,GetIndexResponse>
-
localClusterStateOperation
protected void localClusterStateOperation(Task task, GetIndexRequest request, ProjectState state, ActionListener<GetIndexResponse> listener) throws Exception - Specified by:
localClusterStateOperationin classTransportLocalProjectMetadataAction<GetIndexRequest,GetIndexResponse> - Throws:
Exception
-