Class ActionType<Response extends ActionResponse>

java.lang.Object
org.elasticsearch.action.ActionType<Response>
Direct Known Subclasses:
AddIndexBlockAction, AddVotingConfigExclusionsAction, AliasesExistAction, AnalyzeAction, AnalyzeIndexDiskUsageAction, AutoCreateAction, AutoPutMappingAction, BulkAction, CancelTasksAction, CleanupRepositoryAction, ClearIndicesCacheAction, ClearScrollAction, ClearVotingConfigExclusionsAction, CloneSnapshotAction, CloseIndexAction, ClosePointInTimeAction, ClusterAllocationExplainAction, ClusterHealthAction, ClusterRerouteAction, ClusterSearchShardsAction, ClusterStateAction, ClusterStatsAction, ClusterUpdateSettingsAction, CompletionPersistentTaskAction, CreateIndexAction, CreateSnapshotAction, DeleteAction, DeleteByQueryAction, DeleteComponentTemplateAction, DeleteComposableIndexTemplateAction, DeleteDanglingIndexAction, DeleteIndexAction, DeleteIndexTemplateAction, DeletePipelineAction, DeleteRepositoryAction, DeleteSnapshotAction, DeleteStoredScriptAction, ExplainAction, FieldCapabilitiesAction, FieldUsageStatsAction, FindDanglingIndexAction, FlushAction, ForceMergeAction, GetAction, GetAliasesAction, GetComponentTemplateAction, GetComposableIndexTemplateAction, GetFeatureUpgradeStatusAction, GetFieldMappingsAction, GetIndexAction, GetIndexTemplatesAction, GetMappingsAction, GetPipelineAction, GetRepositoriesAction, GetScriptContextAction, GetScriptLanguageAction, GetSettingsAction, GetShardSnapshotAction, GetSnapshotsAction, GetStoredScriptAction, GetTaskAction, ImportDanglingIndexAction, IndexAction, IndicesAliasesAction, IndicesExistsAction, IndicesSegmentsAction, IndicesShardStoresAction, IndicesStatsAction, ListDanglingIndicesAction, ListTasksAction, MainAction, ModifyDataStreamsAction, MultiGetAction, MultiSearchAction, MultiTermVectorsAction, NodesHotThreadsAction, NodesInfoAction, NodesReloadSecureSettingsAction, NodesStatsAction, NodesUsageAction, OpenIndexAction, OpenPointInTimeAction, PendingClusterTasksAction, PostFeatureUpgradeAction, PutComponentTemplateAction, PutComposableIndexTemplateAction, PutIndexTemplateAction, PutMappingAction, PutPipelineAction, PutRepositoryAction, PutStoredScriptAction, RecoveryAction, RefreshAction, ReindexAction, RemoteInfoAction, RemovePersistentTaskAction, ResetFeatureStateAction, ResizeAction, ResolveIndexAction, RestoreSnapshotAction, RetentionLeaseActions.Add, RetentionLeaseActions.Remove, RetentionLeaseActions.Renew, RolloverAction, SearchAction, SearchScrollAction, ShrinkAction, SimulateIndexTemplateAction, SimulatePipelineAction, SimulateTemplateAction, SnapshotsStatusAction, SnapshottableFeaturesAction, StartPersistentTaskAction, SyncedFlushAction, TermVectorsAction, TypesExistsAction, UpdateAction, UpdateByQueryAction, UpdatePersistentTaskStatusAction, UpdateSettingsAction, UpgradeAction, UpgradeSettingsAction, UpgradeStatusAction, ValidateQueryAction, VerifyRepositoryAction

public class ActionType<Response extends ActionResponse> extends Object
A generic action. Should strive to make it a singleton.
  • Constructor Details

    • ActionType

      public ActionType(String name, Writeable.Reader<Response> responseReader)
      Parameters:
      name - The name of the action, must be unique across actions.
      responseReader - A reader for the response type
  • Method Details

    • name

      public String name()
      The name of the action. Must be unique across actions.
    • getResponseReader

      public Writeable.Reader<Response> getResponseReader()
      Get a reader that can create a new instance of the class from a StreamInput
    • transportOptions

      public TransportRequestOptions transportOptions()
      Optional request options for the action.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object