Class ScriptContextStats

java.lang.Object
org.elasticsearch.script.ScriptContextStats
All Implemented Interfaces:
Comparable<ScriptContextStats>, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class ScriptContextStats extends Object implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment, Comparable<ScriptContextStats>
  • Constructor Details

    • ScriptContextStats

      public ScriptContextStats(String context, long compilations, long cacheEvictions, long compilationLimitTriggered)
    • ScriptContextStats

      public ScriptContextStats(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
    • getContext

      public String getContext()
    • getCompilations

      public long getCompilations()
    • getCacheEvictions

      public long getCacheEvictions()
    • getCompilationLimitTriggered

      public long getCompilationLimitTriggered()
    • toXContent

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

      public int compareTo(ScriptContextStats o)
      Specified by:
      compareTo in interface Comparable<ScriptContextStats>