Package org.elasticsearch.client
Class WatcherClient
java.lang.Object
org.elasticsearch.client.WatcherClient
Deprecated.
The High Level Rest Client is deprecated in favor of the
Elasticsearch Java API Client
-
Method Summary
Modifier and TypeMethodDescriptionackWatch
(AckWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Acknowledges a watch.org.elasticsearch.client.Cancellable
ackWatchAsync
(AckWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AckWatchResponse> listener) Deprecated.Asynchronously acknowledges a watch.activateWatch
(ActivateWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Activate a watch from the cluster See the docs for more.org.elasticsearch.client.Cancellable
activateWatchAsync
(ActivateWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ActivateWatchResponse> listener) Deprecated.Asynchronously activates a watch from the cluster See the docs for more.deactivateWatch
(DeactivateWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Deactivate an existing watch See the docs for more.org.elasticsearch.client.Cancellable
deactivateWatchAsync
(DeactivateWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeactivateWatchResponse> listener) Deprecated.Asynchronously deactivate an existing watch See the docs for more.deleteWatch
(DeleteWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Deletes a watch from the cluster See the docs for more.org.elasticsearch.client.Cancellable
deleteWatchAsync
(DeleteWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeleteWatchResponse> listener) Deprecated.Asynchronously deletes a watch from the cluster See the docs for more.executeWatch
(ExecuteWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Execute a watch on the cluster See the docs for more.org.elasticsearch.client.Cancellable
executeWatchAsync
(ExecuteWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExecuteWatchResponse> listener) Deprecated.Asynchronously execute a watch on the cluster See the docs for more.getWatch
(GetWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Gets a watch from the cluster See the docs for more.org.elasticsearch.client.Cancellable
getWatchAsync
(GetWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetWatchResponse> listener) Deprecated.Asynchronously gets a watch into the cluster See the docs for more.putWatch
(PutWatchRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Put a watch into the cluster See the docs for more.org.elasticsearch.client.Cancellable
putWatchAsync
(PutWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<PutWatchResponse> listener) Deprecated.Asynchronously put a watch into the cluster See the docs for more.org.elasticsearch.action.support.master.AcknowledgedResponse
startWatchService
(StartWatchServiceRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Start the watch service See the docs for more.org.elasticsearch.client.Cancellable
startWatchServiceAsync
(StartWatchServiceRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously start the watch service See the docs for more.org.elasticsearch.action.support.master.AcknowledgedResponse
stopWatchService
(StopWatchServiceRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Stop the watch service See the docs for more.org.elasticsearch.client.Cancellable
stopWatchServiceAsync
(StopWatchServiceRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously stop the watch service See the docs for more.watcherStats
(WatcherStatsRequest request, org.elasticsearch.client.RequestOptions options) Deprecated.Get the watcher stats See the docs for more.org.elasticsearch.client.Cancellable
watcherStatsAsync
(WatcherStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<WatcherStatsResponse> listener) Deprecated.Asynchronously get the watcher stats See the docs for more.
-
Method Details
-
startWatchService
public org.elasticsearch.action.support.master.AcknowledgedResponse startWatchService(StartWatchServiceRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Start the watch service See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
startWatchServiceAsync
public org.elasticsearch.client.Cancellable startWatchServiceAsync(StartWatchServiceRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously start the watch service See the docs for more.- Parameters:
options
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- cancellable that may be used to cancel the request
-
stopWatchService
public org.elasticsearch.action.support.master.AcknowledgedResponse stopWatchService(StopWatchServiceRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Stop the watch service See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
stopWatchServiceAsync
public org.elasticsearch.client.Cancellable stopWatchServiceAsync(StopWatchServiceRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<org.elasticsearch.action.support.master.AcknowledgedResponse> listener) Deprecated.Asynchronously stop the watch service See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- cancellable that may be used to cancel the request
-
putWatch
public PutWatchResponse putWatch(PutWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Put a watch into the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
putWatchAsync
public org.elasticsearch.client.Cancellable putWatchAsync(PutWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<PutWatchResponse> listener) Deprecated.Asynchronously put a watch into the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getWatch
public GetWatchResponse getWatch(GetWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Gets a watch from the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
getWatchAsync
public org.elasticsearch.client.Cancellable getWatchAsync(GetWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<GetWatchResponse> listener) Deprecated.Asynchronously gets a watch into the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deactivateWatch
public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Deactivate an existing watch See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deactivateWatchAsync
public org.elasticsearch.client.Cancellable deactivateWatchAsync(DeactivateWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeactivateWatchResponse> listener) Deprecated.Asynchronously deactivate an existing watch See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteWatch
public DeleteWatchResponse deleteWatch(DeleteWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Deletes a watch from the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
deleteWatchAsync
public org.elasticsearch.client.Cancellable deleteWatchAsync(DeleteWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<DeleteWatchResponse> listener) Deprecated.Asynchronously deletes a watch from the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
ackWatch
public AckWatchResponse ackWatch(AckWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Acknowledges a watch. See the docs for more information.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- if there is a problem sending the request or parsing back the response
-
ackWatchAsync
public org.elasticsearch.client.Cancellable ackWatchAsync(AckWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AckWatchResponse> listener) Deprecated.Asynchronously acknowledges a watch. See the docs for more information.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon completion of the request- Returns:
- cancellable that may be used to cancel the request
-
activateWatch
public ActivateWatchResponse activateWatch(ActivateWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Activate a watch from the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
activateWatchAsync
public org.elasticsearch.client.Cancellable activateWatchAsync(ActivateWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ActivateWatchResponse> listener) Deprecated.Asynchronously activates a watch from the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
executeWatch
public ExecuteWatchResponse executeWatch(ExecuteWatchRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Execute a watch on the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- if there is a problem sending the request or parsing the response
-
executeWatchAsync
public org.elasticsearch.client.Cancellable executeWatchAsync(ExecuteWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<ExecuteWatchResponse> listener) Deprecated.Asynchronously execute a watch on the cluster See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notifed upon request completion- Returns:
- cancellable that may be used to cancel the request
-
watcherStats
public WatcherStatsResponse watcherStats(WatcherStatsRequest request, org.elasticsearch.client.RequestOptions options) throws IOException Deprecated.Get the watcher stats See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
IOException
- in case there is a problem sending the request or parsing back the response
-
watcherStatsAsync
public org.elasticsearch.client.Cancellable watcherStatsAsync(WatcherStatsRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<WatcherStatsResponse> listener) Deprecated.Asynchronously get the watcher stats See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-