Package io.smallrye.metrics
Class MetricRegistries
- java.lang.Object
-
- io.smallrye.metrics.MetricRegistries
-
@ApplicationScoped public class MetricRegistries extends Object
- Author:
- hrupp
-
-
Constructor Summary
Constructors Constructor Description MetricRegistries()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()static voiddrop(org.eclipse.microprofile.metrics.MetricRegistry.Type type)Drops a particular registry.static voiddropAll()Drops all registries.static org.eclipse.microprofile.metrics.MetricRegistryget(org.eclipse.microprofile.metrics.MetricRegistry.Type type)org.eclipse.microprofile.metrics.MetricRegistrygetApplicationRegistry()org.eclipse.microprofile.metrics.MetricRegistrygetBaseRegistry()org.eclipse.microprofile.metrics.MetricRegistrygetVendorRegistry()
-
-
-
Method Detail
-
getApplicationRegistry
@Produces @Default @RegistryType(type=APPLICATION) @ApplicationScoped public org.eclipse.microprofile.metrics.MetricRegistry getApplicationRegistry()
-
getBaseRegistry
@Produces @RegistryType(type=BASE) @ApplicationScoped public org.eclipse.microprofile.metrics.MetricRegistry getBaseRegistry()
-
getVendorRegistry
@Produces @RegistryType(type=VENDOR) @ApplicationScoped public org.eclipse.microprofile.metrics.MetricRegistry getVendorRegistry()
-
get
public static org.eclipse.microprofile.metrics.MetricRegistry get(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
-
cleanUp
@PreDestroy public void cleanUp()
-
drop
public static void drop(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
Drops a particular registry. If a reference to the same registry type is requested later, a new empty registry will be created for that purpose.- Parameters:
type- Type of registry that should be dropped.
-
dropAll
public static void dropAll()
Drops all registries. If a reference to a registry is requested later, a new empty registry will be created for that purpose.
-
-