Package org.elasticsearch.action
Class ActionType<Response extends ActionResponse>
- java.lang.Object
-
- org.elasticsearch.action.ActionType<Response>
-
- Direct Known Subclasses:
AddVotingConfigExclusionsAction,AliasesExistAction,AnalyzeAction,BulkAction,CancelTasksAction,CleanupRepositoryAction,ClearIndicesCacheAction,ClearScrollAction,ClearVotingConfigExclusionsAction,CloseIndexAction,ClusterAllocationExplainAction,ClusterHealthAction,ClusterRerouteAction,ClusterSearchShardsAction,ClusterStateAction,ClusterStatsAction,ClusterUpdateSettingsAction,CompletionPersistentTaskAction,CreateIndexAction,CreateSnapshotAction,DeleteAction,DeleteByQueryAction,DeleteIndexAction,DeleteIndexTemplateAction,DeletePipelineAction,DeleteRepositoryAction,DeleteSnapshotAction,DeleteStoredScriptAction,ExplainAction,FieldCapabilitiesAction,FlushAction,ForceMergeAction,GetAction,GetAliasesAction,GetFieldMappingsAction,GetIndexAction,GetIndexTemplatesAction,GetMappingsAction,GetPipelineAction,GetRepositoriesAction,GetSettingsAction,GetSnapshotsAction,GetStoredScriptAction,GetTaskAction,IndexAction,IndicesAliasesAction,IndicesExistsAction,IndicesSegmentsAction,IndicesShardStoresAction,IndicesStatsAction,ListTasksAction,MainAction,MultiGetAction,MultiSearchAction,MultiTermVectorsAction,NodesHotThreadsAction,NodesInfoAction,NodesReloadSecureSettingsAction,NodesStatsAction,NodesUsageAction,OpenIndexAction,PendingClusterTasksAction,PutIndexTemplateAction,PutMappingAction,PutPipelineAction,PutRepositoryAction,PutStoredScriptAction,RecoveryAction,RefreshAction,ReindexAction,RemoteInfoAction,RemovePersistentTaskAction,ResizeAction,RestoreSnapshotAction,RetentionLeaseActions.Add,RetentionLeaseActions.Remove,RetentionLeaseActions.Renew,RolloverAction,SearchAction,SearchScrollAction,ShrinkAction,SimulatePipelineAction,SnapshotsStatusAction,StartPersistentTaskAction,SyncedFlushAction,TermVectorsAction,TypesExistsAction,UpdateAction,UpdateByQueryAction,UpdatePersistentTaskStatusAction,UpdateSettingsAction,UpgradeAction,UpgradeSettingsAction,UpgradeStatusAction,ValidateQueryAction,VerifyRepositoryAction
public class ActionType<Response extends ActionResponse> extends java.lang.ObjectA generic action. Should strive to make it a singleton.
-
-
Constructor Summary
Constructors Constructor Description ActionType(java.lang.String name, Writeable.Reader<Response> responseReader)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)Writeable.Reader<Response>getResponseReader()Get a reader that can create a new instance of the class from aStreamInputinthashCode()java.lang.Stringname()The name of the action.TransportRequestOptionstransportOptions(Settings settings)Optional request options for the action.
-
-
-
Constructor Detail
-
ActionType
public ActionType(java.lang.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 Detail
-
name
public java.lang.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 aStreamInput
-
transportOptions
public TransportRequestOptions transportOptions(Settings settings)
Optional request options for the action.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-