org.elasticsearch.client.node
Class NodeClusterAdminClient

java.lang.Object
  extended by org.elasticsearch.client.support.AbstractClusterAdminClient
      extended by org.elasticsearch.client.node.NodeClusterAdminClient
All Implemented Interfaces:
ClusterAdminClient, InternalClusterAdminClient

public class NodeClusterAdminClient
extends AbstractClusterAdminClient
implements InternalClusterAdminClient


Constructor Summary
NodeClusterAdminClient(Settings settings, ThreadPool threadPool, TransportClusterHealthAction clusterHealthAction, TransportClusterStateAction clusterStateAction, TransportSinglePingAction singlePingAction, TransportBroadcastPingAction broadcastPingAction, TransportReplicationPingAction replicationPingAction, TransportNodesInfoAction nodesInfoAction, TransportNodesShutdownAction nodesShutdown, TransportNodesRestartAction nodesRestart, TransportNodesStatsAction nodesStatsAction)
           
 
Method Summary
 ActionFuture<ClusterHealthResponse> health(ClusterHealthRequest request)
          The health of the cluster.
 void health(ClusterHealthRequest request, ActionListener<ClusterHealthResponse> listener)
          The health of the cluster.
 ActionFuture<NodesInfoResponse> nodesInfo(NodesInfoRequest request)
          Nodes info of the cluster.
 void nodesInfo(NodesInfoRequest request, ActionListener<NodesInfoResponse> listener)
          Nodes info of the cluster.
 ActionFuture<NodesRestartResponse> nodesRestart(NodesRestartRequest request)
          Restarts nodes in the cluster.
 void nodesRestart(NodesRestartRequest request, ActionListener<NodesRestartResponse> listener)
          Restarts nodes in the cluster.
 ActionFuture<NodesShutdownResponse> nodesShutdown(NodesShutdownRequest request)
          Shutdown nodes in the cluster.
 void nodesShutdown(NodesShutdownRequest request, ActionListener<NodesShutdownResponse> listener)
          Shutdown nodes in the cluster.
 ActionFuture<NodesStatsResponse> nodesStats(NodesStatsRequest request)
          Nodes stats of the cluster.
 void nodesStats(NodesStatsRequest request, ActionListener<NodesStatsResponse> listener)
          Nodes stats of the cluster.
 ActionFuture<BroadcastPingResponse> ping(BroadcastPingRequest request)
           
 void ping(BroadcastPingRequest request, ActionListener<BroadcastPingResponse> listener)
           
 ActionFuture<ReplicationPingResponse> ping(ReplicationPingRequest request)
           
 void ping(ReplicationPingRequest request, ActionListener<ReplicationPingResponse> listener)
           
 ActionFuture<SinglePingResponse> ping(SinglePingRequest request)
           
 void ping(SinglePingRequest request, ActionListener<SinglePingResponse> listener)
           
 ActionFuture<ClusterStateResponse> state(ClusterStateRequest request)
          The state of the cluster.
 void state(ClusterStateRequest request, ActionListener<ClusterStateResponse> listener)
          The state of the cluster.
 ThreadPool threadPool()
           
 
Methods inherited from class org.elasticsearch.client.support.AbstractClusterAdminClient
prepareHealth, prepareNodesInfo, prepareNodesRestart, prepareNodesShutdown, prepareNodesStats, preparePingBroadcast, preparePingReplication, preparePingSingle, preparePingSingle, prepareState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.client.ClusterAdminClient
prepareHealth, prepareNodesInfo, prepareNodesRestart, prepareNodesShutdown, prepareNodesStats, preparePingBroadcast, preparePingReplication, preparePingSingle, preparePingSingle, prepareState
 

Constructor Detail

NodeClusterAdminClient

@Inject
public NodeClusterAdminClient(Settings settings,
                                     ThreadPool threadPool,
                                     TransportClusterHealthAction clusterHealthAction,
                                     TransportClusterStateAction clusterStateAction,
                                     TransportSinglePingAction singlePingAction,
                                     TransportBroadcastPingAction broadcastPingAction,
                                     TransportReplicationPingAction replicationPingAction,
                                     TransportNodesInfoAction nodesInfoAction,
                                     TransportNodesShutdownAction nodesShutdown,
                                     TransportNodesRestartAction nodesRestart,
                                     TransportNodesStatsAction nodesStatsAction)
Method Detail

threadPool

public ThreadPool threadPool()
Specified by:
threadPool in interface InternalClusterAdminClient

health

public ActionFuture<ClusterHealthResponse> health(ClusterHealthRequest request)
Description copied from interface: ClusterAdminClient
The health of the cluster.

Specified by:
health in interface ClusterAdminClient
Parameters:
request - The cluster state request
Returns:
The result future
See Also:
Requests.clusterHealthRequest(String...)

health

public void health(ClusterHealthRequest request,
                   ActionListener<ClusterHealthResponse> listener)
Description copied from interface: ClusterAdminClient
The health of the cluster.

Specified by:
health in interface ClusterAdminClient
Parameters:
request - The cluster state request
listener - A listener to be notified with a result
See Also:
Requests.clusterHealthRequest(String...)

state

public ActionFuture<ClusterStateResponse> state(ClusterStateRequest request)
Description copied from interface: ClusterAdminClient
The state of the cluster.

Specified by:
state in interface ClusterAdminClient
Parameters:
request - The cluster state request.
Returns:
The result future
See Also:
Requests.clusterStateRequest()

state

public void state(ClusterStateRequest request,
                  ActionListener<ClusterStateResponse> listener)
Description copied from interface: ClusterAdminClient
The state of the cluster.

Specified by:
state in interface ClusterAdminClient
Parameters:
request - The cluster state request.
listener - A listener to be notified with a result
See Also:
Requests.clusterStateRequest()

ping

public ActionFuture<SinglePingResponse> ping(SinglePingRequest request)
Specified by:
ping in interface ClusterAdminClient

ping

public void ping(SinglePingRequest request,
                 ActionListener<SinglePingResponse> listener)
Specified by:
ping in interface ClusterAdminClient

ping

public ActionFuture<BroadcastPingResponse> ping(BroadcastPingRequest request)
Specified by:
ping in interface ClusterAdminClient

ping

public void ping(BroadcastPingRequest request,
                 ActionListener<BroadcastPingResponse> listener)
Specified by:
ping in interface ClusterAdminClient

ping

public ActionFuture<ReplicationPingResponse> ping(ReplicationPingRequest request)
Specified by:
ping in interface ClusterAdminClient

ping

public void ping(ReplicationPingRequest request,
                 ActionListener<ReplicationPingResponse> listener)
Specified by:
ping in interface ClusterAdminClient

nodesInfo

public ActionFuture<NodesInfoResponse> nodesInfo(NodesInfoRequest request)
Description copied from interface: ClusterAdminClient
Nodes info of the cluster.

Specified by:
nodesInfo in interface ClusterAdminClient
Parameters:
request - The nodes info request
Returns:
The result future
See Also:
Requests.nodesInfoRequest(String...)

nodesInfo

public void nodesInfo(NodesInfoRequest request,
                      ActionListener<NodesInfoResponse> listener)
Description copied from interface: ClusterAdminClient
Nodes info of the cluster.

Specified by:
nodesInfo in interface ClusterAdminClient
Parameters:
request - The nodes info request
listener - A listener to be notified with a result
See Also:
Requests.nodesInfoRequest(String...)

nodesStats

public ActionFuture<NodesStatsResponse> nodesStats(NodesStatsRequest request)
Description copied from interface: ClusterAdminClient
Nodes stats of the cluster.

Specified by:
nodesStats in interface ClusterAdminClient
Parameters:
request - The nodes info request
Returns:
The result future
See Also:
Requests.nodesStatsRequest(String...)

nodesStats

public void nodesStats(NodesStatsRequest request,
                       ActionListener<NodesStatsResponse> listener)
Description copied from interface: ClusterAdminClient
Nodes stats of the cluster.

Specified by:
nodesStats in interface ClusterAdminClient
Parameters:
request - The nodes info request
listener - A listener to be notified with a result
See Also:
Requests.nodesStatsRequest(String...)

nodesShutdown

public ActionFuture<NodesShutdownResponse> nodesShutdown(NodesShutdownRequest request)
Description copied from interface: ClusterAdminClient
Shutdown nodes in the cluster.

Specified by:
nodesShutdown in interface ClusterAdminClient
Parameters:
request - The nodes shutdown request
Returns:
The result future
See Also:
Requests.nodesShutdownRequest(String...)

nodesShutdown

public void nodesShutdown(NodesShutdownRequest request,
                          ActionListener<NodesShutdownResponse> listener)
Description copied from interface: ClusterAdminClient
Shutdown nodes in the cluster.

Specified by:
nodesShutdown in interface ClusterAdminClient
Parameters:
request - The nodes shutdown request
listener - A listener to be notified with a result
See Also:
Requests.nodesShutdownRequest(String...)

nodesRestart

public ActionFuture<NodesRestartResponse> nodesRestart(NodesRestartRequest request)
Description copied from interface: ClusterAdminClient
Restarts nodes in the cluster.

Specified by:
nodesRestart in interface ClusterAdminClient
Parameters:
request - The nodes restart request
Returns:
The result future
See Also:
Requests.nodesRestartRequest(String...)

nodesRestart

public void nodesRestart(NodesRestartRequest request,
                         ActionListener<NodesRestartResponse> listener)
Description copied from interface: ClusterAdminClient
Restarts nodes in the cluster.

Specified by:
nodesRestart in interface ClusterAdminClient
Parameters:
request - The nodes restart request
listener - A listener to be notified with a result
See Also:
Requests.nodesRestartRequest(String...)