Class CircuitBreakerStats

java.lang.Object
org.elasticsearch.indices.breaker.CircuitBreakerStats
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class CircuitBreakerStats extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
Class encapsulating stats about the circuit breaker
  • Constructor Details

    • CircuitBreakerStats

      public CircuitBreakerStats(String name, long limit, long estimated, double overhead, long trippedCount)
    • CircuitBreakerStats

      public CircuitBreakerStats(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getName

      public String getName()
    • getLimit

      public long getLimit()
    • getEstimated

      public long getEstimated()
    • getTrippedCount

      public long getTrippedCount()
    • getOverhead

      public double getOverhead()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object