Package org.elasticsearch.client
Class WatcherClient
- java.lang.Object
-
- org.elasticsearch.client.WatcherClient
-
public final class WatcherClient extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AckWatchResponse
ackWatch(AckWatchRequest request, RequestOptions options)
Acknowledges a watch.void
ackWatchAsync(AckWatchRequest request, RequestOptions options, ActionListener<AckWatchResponse> listener)
Asynchronously acknowledges a watch.ActivateWatchResponse
activateWatch(ActivateWatchRequest request, RequestOptions options)
Activate a watch from the cluster See the docs for more.void
activateWatchAsync(ActivateWatchRequest request, RequestOptions options, ActionListener<ActivateWatchResponse> listener)
Asynchronously activates a watch from the cluster See the docs for more.DeleteWatchResponse
deleteWatch(DeleteWatchRequest request, RequestOptions options)
Deletes a watch from the cluster See the docs for more.void
deleteWatchAsync(DeleteWatchRequest request, RequestOptions options, ActionListener<DeleteWatchResponse> listener)
Asynchronously deletes a watch from the cluster See the docs for more.PutWatchResponse
putWatch(PutWatchRequest request, RequestOptions options)
Put a watch into the cluster See the docs for more.void
putWatchAsync(PutWatchRequest request, RequestOptions options, ActionListener<PutWatchResponse> listener)
Asynchronously put a watch into the cluster See the docs for more.AcknowledgedResponse
startWatchService(StartWatchServiceRequest request, RequestOptions options)
Start the watch service See the docs for more.void
startWatchServiceAsync(StartWatchServiceRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously start the watch service See the docs for more.AcknowledgedResponse
stopWatchService(StopWatchServiceRequest request, RequestOptions options)
Stop the watch service See the docs for more.void
stopWatchServiceAsync(StopWatchServiceRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously stop the watch service See the docs for more.
-
-
-
Method Detail
-
startWatchService
public AcknowledgedResponse startWatchService(StartWatchServiceRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
startWatchServiceAsync
public void startWatchServiceAsync(StartWatchServiceRequest request, RequestOptions options, ActionListener<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
-
stopWatchService
public AcknowledgedResponse stopWatchService(StopWatchServiceRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
stopWatchServiceAsync
public void stopWatchServiceAsync(StopWatchServiceRequest request, RequestOptions options, ActionListener<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
-
putWatch
public PutWatchResponse putWatch(PutWatchRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
putWatchAsync
public void putWatchAsync(PutWatchRequest request, RequestOptions options, 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
-
deleteWatch
public DeleteWatchResponse deleteWatch(DeleteWatchRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
deleteWatchAsync
public void deleteWatchAsync(DeleteWatchRequest request, RequestOptions options, 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
-
ackWatch
public AckWatchResponse ackWatch(AckWatchRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- if there is a problem sending the request or parsing back the response
-
ackWatchAsync
public void ackWatchAsync(AckWatchRequest request, RequestOptions options, 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
-
activateWatch
public ActivateWatchResponse activateWatch(ActivateWatchRequest request, RequestOptions options) throws java.io.IOException
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:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
activateWatchAsync
public void activateWatchAsync(ActivateWatchRequest request, RequestOptions options, 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
-
-