public static interface MetricsService.MetricsContext
MetricsService.MetricsContext.
In addition there is the server context which has no name as indicated by isServerContext().| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_CONTEXT_NAME
The global or server context name cannot have any name but the empty string as all other names potentially
are application names used by deployed applications.
|
| Modifier and Type | Method and Description |
|---|---|
default org.eclipse.microprofile.metrics.MetricRegistry |
getApplicationRegistry() |
default org.eclipse.microprofile.metrics.MetricRegistry |
getBaseRegistry() |
String |
getName() |
org.eclipse.microprofile.metrics.MetricRegistry |
getRegistry(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
Access a
MetricRegistry of this context. |
default org.eclipse.microprofile.metrics.MetricRegistry |
getVendorRegistry() |
default boolean |
isServerContext() |
static final String SERVER_CONTEXT_NAME
String getName()
default boolean isServerContext()
org.eclipse.microprofile.metrics.MetricRegistry getRegistry(org.eclipse.microprofile.metrics.MetricRegistry.Type type)
throws NoSuchRegistryException
MetricRegistry of this context. Each context has one instance of each type except the server
context does not have an application type registry.type - the type of MetricRegistry to accessMetricRegistry instance for the type in this contextNoSuchRegistryException - In case asking for a MetricRegistry.Type#APPLICATION registry in the
server (global) context.default org.eclipse.microprofile.metrics.MetricRegistry getBaseRegistry()
default org.eclipse.microprofile.metrics.MetricRegistry getVendorRegistry()
default org.eclipse.microprofile.metrics.MetricRegistry getApplicationRegistry()
throws NoSuchRegistryException
NoSuchRegistryExceptionCopyright © 2021. All rights reserved.