Class WatcherClient

java.lang.Object
org.elasticsearch.client.WatcherClient

@Deprecated public final class WatcherClient extends Object
Deprecated.
The High Level Rest Client is deprecated in favor of the Elasticsearch Java API Client
  • 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 request
      options - the request options (e.g. headers), use RequestOptions.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), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - 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 request
      options - the request options (e.g. headers), use RequestOptions.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 request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      Returns:
      cancellable that may be used to cancel the request