Package net.bluemind.metrics.registry
Class IdFactory
java.lang.Object
net.bluemind.metrics.registry.IdFactory
-
Constructor Summary
ConstructorDescriptionCreate an helper for consistent naming in metrics.Create an helper for consistent naming in metrics. -
Method Summary
-
Constructor Details
-
IdFactory
Create an helper for consistent naming in metrics. The produced metric names will be prefixed by JVM kind or by the given object's class name.- Parameters:
reg
- spectator registryo
- the class of this object is used only if we cannot identify the JVM with the net.bluemind.property.product
-
IdFactory
Create an helper for consistent naming in metrics. The produced metric names will be prefixed by JVM kind or by the given class name.- Parameters:
reg
- spectator registryk
- used only if we cannot identify the JVM with the net.bluemind.property.product
-
IdFactory
- Parameters:
component
- the metric name will be prefixed jvm-kind.componentreg
- spectator registryk
- used only if we cannot identify the JVM with the net.bluemind.property.product
-
-
Method Details
-
product
Returns the jvm product name, usable as an origin for events- Returns:
-
name
-
name
-