All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Enclosing class:
WatcherStatsResponse

public static class WatcherStatsResponse.Node extends BaseNodeResponse implements org.elasticsearch.xcontent.ToXContentObject
  • Constructor Details

  • Method Details

    • getThreadPoolQueueSize

      public long getThreadPoolQueueSize()
      Returns:
      The current execution thread pool queue size
    • setThreadPoolQueueSize

      public void setThreadPoolQueueSize(long threadPoolQueueSize)
    • getThreadPoolMaxSize

      public long getThreadPoolMaxSize()
      Returns:
      The max number of threads in the execution thread pool
    • setThreadPoolMaxSize

      public void setThreadPoolMaxSize(long threadPoolMaxSize)
    • getWatchesCount

      public long getWatchesCount()
      Returns:
      The number of watches currently registered in the system
    • setWatchesCount

      public void setWatchesCount(long watchesCount)
    • getWatcherState

      public WatcherState getWatcherState()
      Returns:
      The state of the watch service.
    • setWatcherState

      public void setWatcherState(WatcherState watcherServiceState)
    • getSnapshots

      @Nullable public List<WatchExecutionSnapshot> getSnapshots()
    • setSnapshots

      public void setSnapshots(List<WatchExecutionSnapshot> snapshots)
    • getQueuedWatches

      @Nullable public List<QueuedWatch> getQueuedWatches()
    • setQueuedWatches

      public void setQueuedWatches(List<QueuedWatch> queuedWatches)
    • getStats

      public Counters getStats()
    • setStats

      public void setStats(Counters stats)
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BaseNodeResponse
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException