Package org.elasticsearch.action
Class Action<Response extends ActionResponse>
- java.lang.Object
-
- org.elasticsearch.action.Action<Response>
-
- Direct Known Subclasses:
AliasesExistAction
,AnalyzeAction
,BulkAction
,CancelTasksAction
,ClearIndicesCacheAction
,ClearScrollAction
,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
,RolloverAction
,SearchAction
,SearchScrollAction
,ShrinkAction
,SimulatePipelineAction
,SnapshotsStatusAction
,StartPersistentTaskAction
,SyncedFlushAction
,TermVectorsAction
,TypesExistsAction
,UpdateAction
,UpdateByQueryAction
,UpdatePersistentTaskStatusAction
,UpdateSettingsAction
,UpgradeAction
,UpgradeSettingsAction
,UpgradeStatusAction
,ValidateQueryAction
,VerifyRepositoryAction
public abstract class Action<Response extends ActionResponse> extends java.lang.Object
A generic action. Should strive to make it a singleton.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Action(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Writeable.Reader<Response>
getResponseReader()
Get a reader that can create a new instance of the class from aStreamInput
int
hashCode()
java.lang.String
name()
The name of the action.abstract Response
newResponse()
Deprecated.ImplementgetResponseReader()
instead and make this method throw anUnsupportedOperationException
TransportRequestOptions
transportOptions(Settings settings)
Optional request options for the action.
-
-
-
Method Detail
-
name
public java.lang.String name()
The name of the action. Must be unique across actions.
-
newResponse
@Deprecated public abstract Response newResponse()
Deprecated.ImplementgetResponseReader()
instead and make this method throw anUnsupportedOperationException
Creates a new response instance.
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-