org.elasticsearch.client.node
Class NodeClusterAdminClient
java.lang.Object
org.elasticsearch.util.component.AbstractComponent
org.elasticsearch.client.node.NodeClusterAdminClient
- All Implemented Interfaces:
- ClusterAdminClient
public class NodeClusterAdminClient
- extends AbstractComponent
- implements ClusterAdminClient
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeClusterAdminClient
@Inject
public NodeClusterAdminClient(Settings settings,
TransportClusterHealthAction clusterHealthAction,
TransportClusterStateAction clusterStateAction,
TransportSinglePingAction singlePingAction,
TransportBroadcastPingAction broadcastPingAction,
TransportReplicationPingAction replicationPingAction,
TransportNodesInfo nodesInfo,
TransportNodesShutdown nodesShutdown)
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 requestlistener
- 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 requestlistener
- 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 requestlistener
- A listener to be notified with a result- See Also:
Requests.nodesShutdown(String...)