Package fr.gouv.vitam.common.metrics
Class VitamMetrics
- java.lang.Object
-
- fr.gouv.vitam.common.metrics.VitamMetrics
-
public class VitamMetrics extends java.lang.Object
A basic class that acts as a container between aVitamMetricRegistry
and aScheduledReporter
. This class provides an access to theVitamMetricRegistry
and the possibility to start/stop the reporting.
-
-
Constructor Summary
Constructors Constructor Description VitamMetrics(VitamMetricsType type, VitamMetricsConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamMetricRegistry
getRegistry()
Return the underlying metric registryVitamMetricsType
getType()
Return the type of thisVitamMetrics
boolean
isReporting()
Indicates whether or not thisVitamMetrics
is currently reporting.void
start()
Start the reporting.void
stop()
Stop the reporting.
-
-
-
Constructor Detail
-
VitamMetrics
public VitamMetrics(VitamMetricsType type, VitamMetricsConfiguration configuration)
-
-
Method Detail
-
getRegistry
public VitamMetricRegistry getRegistry()
Return the underlying metric registry- Returns:
VitamMetricRegistry
-
getType
public VitamMetricsType getType()
Return the type of thisVitamMetrics
- Returns:
VitamMetricsType
-
isReporting
public boolean isReporting()
Indicates whether or not thisVitamMetrics
is currently reporting.- Returns:
- boolean
-
start
public final void start()
Start the reporting.
-
stop
public final void stop()
Stop the reporting.
-
-