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.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.master.TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>
              extended by org.elasticsearch.action.admin.cluster.node.shutdown.TransportNodesShutdownAction

public class TransportNodesShutdownAction
extends TransportMasterNodeOperationAction<NodesShutdownRequest,NodesShutdownResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
clusterService, transportService
 
Fields inherited from class org.elasticsearch.action.support.TransportAction
threadPool
 
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  String executor()
           
protected  NodesShutdownResponse masterOperation(NodesShutdownRequest request, ClusterState state)
           
protected  NodesShutdownRequest newRequest()
           
protected  NodesShutdownResponse newResponse()
           
protected  void processBeforeDelegationToMaster(NodesShutdownRequest request, ClusterState state)
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
checkBlock, doExecute, localExecute
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
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

executor

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

transportAction

protected 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


Copyright © 2009-2012. All Rights Reserved.