Package google.registry.model
Class OteStats
- java.lang.Object
-
- google.registry.model.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 seencom.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 takenjava.lang.String
toString()
Returns a string showing all possible actions and how many times each was performed.
-
-
-
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 classjava.lang.Object
-
-