org.elasticsearch.client.node
Class NodeClusterAdminClient

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.client.node.NodeClusterAdminClient
All Implemented Interfaces:
ClusterAdminClient

public class NodeClusterAdminClient
extends AbstractComponent
implements ClusterAdminClient


Field Summary
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
NodeClusterAdminClient(Settings settings, TransportClusterHealthAction clusterHealthAction, TransportClusterStateAction clusterStateAction, TransportSinglePingAction singlePingAction, TransportBroadcastPingAction broadcastPingAction, TransportReplicationPingAction replicationPingAction, TransportNodesInfo nodesInfo, TransportNodesShutdown nodesShutdown)
           
 
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<NodesShutdownResponse> nodesShutdown(NodesShutdownRequest request)
          Shutdown nodes in the cluster.
 void nodesShutdown(NodesShutdownRequest request, ActionListener<NodesShutdownResponse> listener)
          Shutdown nodes in 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.
 
Methods inherited from class org.elasticsearch.util.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeClusterAdminClient

@Inject
public NodeClusterAdminClient(Settings settings,
                                     TransportClusterHealthAction clusterHealthAction,
                                     TransportClusterStateAction clusterStateAction,
                                     TransportSinglePingAction singlePingAction,
                                     TransportBroadcastPingAction broadcastPingAction,
                                     TransportReplicationPingAction replicationPingAction,
                                     TransportNodesInfo nodesInfo,
                                     TransportNodesShutdown nodesShutdown)
Method Detail

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.clusterHealth(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.clusterHealth(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.clusterState()

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.clusterState()

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.nodesInfo(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.nodesInfo(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.nodesShutdown(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.nodesShutdown(String...)