- All Implemented Interfaces:
com.erudika.para.core.listeners.InitializeListener
,Serializable
,Comparable<MetricsUtils>
,Constable
,Runnable
,EventListener
public enum MetricsUtils
extends Enum<MetricsUtils>
implements com.erudika.para.core.listeners.InitializeListener, Runnable
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsUtils
Provides access to the singleton instance methods.static void
removeAppSetting
(com.erudika.para.core.App app, String key) A listener method to process removed settings for an application (including the root app).static MetricsUtils
Returns 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 java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.erudika.para.core.listeners.InitializeListener
onInitialize
-
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
-