public interface StatsProvider
| Modifier and Type | Method and Description |
|---|---|
StatsLogger |
getStatsLogger(java.lang.String scope)
Return the stats logger to a given scope.
|
default java.lang.String |
getStatsName(java.lang.String... statsComponents)
Return the fully qualified stats name comprised of given statsComponents.
|
void |
start(org.apache.commons.configuration.Configuration conf)
Initialize the stats provider by loading the given configuration conf.
|
void |
stop()
Close the stats provider.
|
default void |
writeAllMetrics(java.io.Writer writer) |
void start(org.apache.commons.configuration.Configuration conf)
conf - Configuration to configure the stats provider.void stop()
default void writeAllMetrics(java.io.Writer writer)
throws java.io.IOException
writer - java.io.IOExceptionStatsLogger getStatsLogger(java.lang.String scope)
scope - Scope for the given statsdefault java.lang.String getStatsName(java.lang.String... statsComponents)
statsComponents - stats components to comprise the fully qualified stats nameCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.