org.elasticsearch.action
Class GenericAction<Request extends ActionRequest,Response extends ActionResponse>

java.lang.Object
  extended by org.elasticsearch.action.GenericAction<Request,Response>
Direct Known Subclasses:
Action, ClusterAction, IndicesAction

public abstract class GenericAction<Request extends ActionRequest,Response extends ActionResponse>
extends Object

A generic action. Should strive to make it a singleton.


Constructor Summary
protected GenericAction(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String name()
          The name of the action.
abstract  Response newResponse()
          Creates a new response instance.
 TransportRequestOptions transportOptions(Settings settings)
          Optional request options for the action.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericAction

protected GenericAction(String name)
Parameters:
name - The name of the action, must be unique across actions.
Method Detail

name

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


newResponse

public abstract Response newResponse()
Creates a new response instance.


transportOptions

public TransportRequestOptions transportOptions(Settings settings)
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


Copyright © 2009-2012. All Rights Reserved.