Class ActionType<Response extends ActionResponse>
- Direct Known Subclasses:
AbstractSynonymsPagedResultAction,AnalyzeAction,AutoCreateAction,ClusterFormationInfoAction,ClusterGetSettingsAction,ClusterStateAction,ClusterUpdateSettingsAction,CoordinationDiagnosticsAction,CreateDataStreamAction,DataStreamsStatsAction,DeleteByQueryAction,DeleteDataStreamAction,DeleteSynonymRuleAction,DeleteSynonymsAction,DownsampleAction,FetchHealthInfoCacheAction,FieldUsageStatsAction,FlushAction,ForceMergeAction,GetAliasesAction,GetComponentTemplateAction,GetComposableIndexTemplateAction,GetDataStreamAction,GetDesiredNodesAction,GetFieldMappingsAction,GetHealthAction,GetIndexAction,GetIndexTemplatesAction,GetMappingsAction,GetPipelineAction,GetRepositoriesAction,GetScriptContextAction,GetScriptLanguageAction,GetSettingsAction,GetSynonymRuleAction,HealthApiStatsAction,IndexModeStatsActionType,IndicesSegmentsAction,IndicesStatsAction,LazyRolloverAction,MasterHistoryAction,MigrateToDataStreamAction,ModifyDataStreamsAction,MultiTermVectorsAction,OpenIndexAction,PrevalidateNodeRemovalAction,PromoteDataStreamAction,PutComponentTemplateAction,PutSynonymRuleAction,PutSynonymsAction,RecoveryAction,RefreshAction,ReindexAction,ResetFeatureStateAction,ResizeAction,ResolveIndexAction,RolloverAction,SimulateBulkAction,SimulateIndexTemplateAction,SimulatePipelineAction,SimulateTemplateAction,SnapshottableFeaturesAction,TermVectorsAction,UpdateByQueryAction,UpdateDesiredNodesAction,UpdateHealthInfoCacheAction,ValidateQueryAction,VerifyRepositoryAction
ElasticsearchClient.execute(org.elasticsearch.action.ActionType<Response>, Request). The implementation must be registered with the node using
ActionModule.setupActions(java.util.List<org.elasticsearch.plugins.ActionPlugin>) (for actions in the :server package) or ActionPlugin.getActions() (for actions in
plugins).
Typically, every ActionType instance is a global constant (i.e. a public static final field) called INSTANCE or
TYPE. Some legacy implementations create custom subclasses of ActionType but this is unnecessary and somewhat wasteful. Prefer
to create instances of this class directly whenever possible.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ActionType
Construct anActionTypewith the given name.There is no facility for directly executing an action on a different node in the local cluster. To achieve this, implement an action which runs on the local node and knows how to use the
TransportServiceto forward the request to a different node. There are several utilities that help implement such an action, includingTransportNodesActionorTransportMasterNodeAction.- Parameters:
name- The name of the action, which must be unique across actions.
-
-
Method Details
-
localOnly
@Deprecated(forRemoval=true) public static <T extends ActionResponse> ActionType<T> localOnly(String name) Deprecated, for removal: This API element is subject to removal in a future version.Just create theActionTypedirectly.Construct anActionTypewith the given name.There is no facility for directly executing an action on a different node in the local cluster. To achieve this, implement an action which runs on the local node and knows how to use the
TransportServiceto forward the request to a different node. There are several utilities that help implement such an action, includingTransportNodesActionorTransportMasterNodeAction.- Parameters:
name- The name of the action, which must be unique across actions.- Returns:
- an
ActionTypewhich callers can execute on the local node.
-
name
The name of the action. Must be unique across actions. -
equals
-
hashCode
public int hashCode() -
toString
-
ActionTypedirectly.