Class OteStats


  • public class OteStats
    extends java.lang.Object
    Represents stats derived from HistoryEntry objects on actions taken by registrars.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OteStats.StatType
      Enum defining the distinct statistics (types of registrar actions) to record.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount​(OteStats.StatType statType)
      Returns the number of times that a particular StatType was seen
      com.google.common.collect.ImmutableList<OteStats.StatType> getFailures()
      Returns a list of failures, any cases where the passed stats fail to meet the required thresholds, or the empty list if all requirements are met.
      static OteStats getFromRegistrar​(java.lang.String registrarName)
      Returns the statistics about the OT&E actions that have been taken by a particular registrar.
      int getSize()
      Returns the total number of actions taken
      java.lang.String toString()
      Returns a string showing all possible actions and how many times each was performed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getFromRegistrar

        public static OteStats getFromRegistrar​(java.lang.String registrarName)
        Returns the statistics about the OT&E actions that have been taken by a particular registrar.
      • getSize

        public int getSize()
        Returns the total number of actions taken
      • getCount

        public int getCount​(OteStats.StatType statType)
        Returns the number of times that a particular StatType was seen
      • getFailures

        public com.google.common.collect.ImmutableList<OteStats.StatType> getFailures()
        Returns a list of failures, any cases where the passed stats fail to meet the required thresholds, or the empty list if all requirements are met.
      • toString

        public java.lang.String toString()
        Returns a string showing all possible actions and how many times each was performed.
        Overrides:
        toString in class java.lang.Object