Package org.elasticsearch.action
Class ActionType<Response extends ActionResponse>
- java.lang.Object
-
- org.elasticsearch.action.ActionType<Response>
-
- Direct Known Subclasses:
AddVotingConfigExclusionsAction,AnalyzeAction,CancelTasksAction,ClearVotingConfigExclusionsAction,CloseIndexAction,ClusterRerouteAction,ClusterSearchShardsAction,ClusterUpdateSettingsAction,CreateIndexAction,DeleteIndexAction,DeleteIndexTemplateAction,DeletePipelineAction,DeleteRepositoryAction,DeleteSnapshotAction,DeleteStoredScriptAction,ExplainAction,GetAction,GetFieldMappingsAction,IndicesAliasesAction,ListTasksAction,MultiSearchAction,OpenIndexAction,PutIndexTemplateAction,PutMappingAction,PutPipelineAction,PutRepositoryAction,PutStoredScriptAction,ResizeAction,RolloverAction,SearchAction,SearchScrollAction,ShrinkAction,StreamableResponseActionType,TermVectorsAction,UpdateSettingsAction,UpgradeSettingsAction
public class ActionType<Response extends ActionResponse> extends java.lang.ObjectA generic action. Should strive to make it a singleton.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedActionType(java.lang.String name)Deprecated.Pass aWriteable.ReaderwithActionType(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
@Deprecated protected ActionType(java.lang.String name)
Deprecated.Pass aWriteable.Readerwith- Parameters:
name- The name of the action, must be unique across actions.
-
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
-
-