Class OteStats

java.lang.Object
google.registry.model.OteStats

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

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

    Modifier and Type
    Method
    Description
    int
    Returns the number of times that a particular StatType was seen
    com.google.common.collect.ImmutableList<OteStats.StatType>
    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(String registrarName)
    Returns the statistics about the OT&E actions that have been taken by a particular registrar.
    int
    Returns the total number of actions taken
    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 Details

    • getFromRegistrar

      public static OteStats getFromRegistrar(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 String toString()
      Returns a string showing all possible actions and how many times each was performed.
      Overrides:
      toString in class Object