org.elasticsearch.action.admin.cluster.node.shutdown
Class TransportNodesShutdownAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.master.TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>
              extended by org.elasticsearch.action.admin.cluster.node.shutdown.TransportNodesShutdownAction
All Implemented Interfaces:
Action<NodesShutdownRequest,NodesShutdownResponse>

public class TransportNodesShutdownAction
extends TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
clusterService, threadPool, transportService
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportNodesShutdownAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, Node node, ClusterName clusterName)
           
 
Method Summary
protected  NodesShutdownResponse masterOperation(NodesShutdownRequest request, ClusterState state)
           
protected  NodesShutdownRequest newRequest()
           
protected  NodesShutdownResponse newResponse()
           
protected  void processBeforeDelegationToMaster(NodesShutdownRequest request, ClusterState state)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
checkBlock, doExecute, localExecute
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportNodesShutdownAction

@Inject
public TransportNodesShutdownAction(Settings settings,
                                           TransportService transportService,
                                           ClusterService clusterService,
                                           ThreadPool threadPool,
                                           Node node,
                                           ClusterName clusterName)
Method Detail

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>

newRequest

protected NodesShutdownRequest newRequest()
Specified by:
newRequest in class TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>

newResponse

protected NodesShutdownResponse newResponse()
Specified by:
newResponse in class TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>

processBeforeDelegationToMaster

protected void processBeforeDelegationToMaster(NodesShutdownRequest request,
                                               ClusterState state)
Overrides:
processBeforeDelegationToMaster in class TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>

masterOperation

protected NodesShutdownResponse masterOperation(NodesShutdownRequest request,
                                                ClusterState state)
                                         throws ElasticSearchException
Specified by:
masterOperation in class TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>
Throws:
ElasticSearchException