org.elasticsearch.client.node
Class NodeClusterAdminClient
java.lang.Object
org.elasticsearch.client.support.AbstractClusterAdminClient
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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 requestlistener - 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 requestlistener - 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 requestlistener - 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 requestlistener - 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 requestlistener - A listener to be notified with a result- See Also:
Requests.nodesRestartRequest(String...)