Package org.elasticsearch.client
Class WatcherClient
java.lang.Object
org.elasticsearch.client.WatcherClient
public final class WatcherClient
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description AckWatchResponse
ackWatch(AckWatchRequest request, org.elasticsearch.client.RequestOptions options)
Acknowledges a watch.org.elasticsearch.client.Cancellable
ackWatchAsync(AckWatchRequest request, org.elasticsearch.client.RequestOptions options, org.elasticsearch.action.ActionListener<AckWatchResponse> listener)
Asynchronously acknowledges a watch.ActivateWatchResponse
activateWatch(ActivateWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously activates a watch from the cluster See the docs for more.DeactivateWatchResponse
deactivateWatch(DeactivateWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously deactivate an existing watch See the docs for more.DeleteWatchResponse
deleteWatch(DeleteWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously deletes a watch from the cluster See the docs for more.ExecuteWatchResponse
executeWatch(ExecuteWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously execute a watch on the cluster See the docs for more.GetWatchResponse
getWatch(GetWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously gets a watch into the cluster See the docs for more.PutWatchResponse
putWatch(PutWatchRequest request, org.elasticsearch.client.RequestOptions options)
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)
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)
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)
Asynchronously start the watch service See the docs for more.org.elasticsearch.action.support.master.AcknowledgedResponse
stopWatchService(StopWatchServiceRequest request, org.elasticsearch.client.RequestOptions options)
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)
Asynchronously stop the watch service See the docs for more.WatcherStatsResponse
watcherStats(WatcherStatsRequest request, org.elasticsearch.client.RequestOptions options)
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)
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 java.io.IOExceptionStart 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:
java.io.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)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 java.io.IOExceptionStop 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:
java.io.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)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 java.io.IOExceptionPut 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:
java.io.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)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 java.io.IOExceptionGets 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:
java.io.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)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 java.io.IOExceptionDeactivate 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:
java.io.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)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 java.io.IOExceptionDeletes 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:
java.io.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)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 java.io.IOExceptionAcknowledges 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:
java.io.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)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 java.io.IOExceptionActivate 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:
java.io.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)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 java.io.IOExceptionExecute 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:
java.io.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)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 java.io.IOExceptionGet 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:
java.io.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)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
-