Enum Class MetricsUtils
- All Implemented Interfaces:
 Serializable, Comparable<MetricsUtils>, Constable, Runnable, EventListener
A centralized utility for managing and retrieving all Para performance metrics.
- Author:
 - Jeremy Wiesner [[email protected]]
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> - 
Enum Constant Summary
Enum Constants - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsUtilsProvides access to the singleton instance methods.voidstatic voidremoveAppSetting(com.erudika.para.core.App app, String key) A listener method to process removed settings for an application (including the root app).static MetricsUtilsReturns the enum constant of this class with the specified name.static MetricsUtils[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 
- 
Enum Constant Details
- 
INSTANCE
Singleton. 
 - 
 - 
Field Details
- 
GRAPHITE_REGISTRY_NAME
The name of the registry holding app-specific settings for reporting metrics to Graphite.- See Also:
 
 - 
GRAPHITE_APP_SETTINGS_NAME
The name of the app settings object that contains the info to push an app's metrics to Graphite.- See Also:
 
 
 - 
 - 
Method Details
- 
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
 - an array containing the constants of this enum class, in the order they are declared
 
 - 
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
 name- the name of the enum constant to be returned.- Returns:
 - the enum constant with the specified name
 - Throws:
 IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
 - 
getInstance
Provides access to the singleton instance methods.- Returns:
 - an instance of this class
 
 - 
removeAppSetting
A listener method to process removed settings for an application (including the root app).- Parameters:
 app- the application the setting was removed from.key- the name of the setting
 - 
onInitialize
void onInitialize() 
 -