Class VitamMetricsConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.VitamMetricsConfiguration
-
public final class VitamMetricsConfiguration extends java.lang.Object
Class to use for reading the metrics configuration file.
-
-
Constructor Summary
Constructors Constructor Description VitamMetricsConfiguration()
DbConfiguration empty constructor for YAMLFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamLogLevel
getMetricLogLevel()
Get the metric log levelVitamMetricsReporterType
getMetricReporter()
Get the metric reporter typejava.lang.String[]
getMetricReporterHosts()
Get the metric reporter hostint
getMetricReporterInterval()
Get the metric reporter intervaljava.util.concurrent.TimeUnit
getMetricReporterIntervalUnit()
Get the metric reporter interval unitboolean
hasMetricsJVM()
Determines whether or not JVM metrics should be activatedboolean
hasMetricsRest()
Determines whether or not REST metrics should be activatedboolean
isEnableCountInputBytesMetrics()
boolean
isEnableCountOutputBytesMetrics()
void
setEnableCountInputBytesMetrics(boolean enableCountInputBytesMetrics)
void
setEnableCountOutputBytesMetrics(boolean enableCountOutputBytesMetrics)
VitamMetricsConfiguration
setMetricLogLevel(VitamLogLevel metricLogLevel)
Set the metric log levelVitamMetricsConfiguration
setMetricReporter(VitamMetricsReporterType metricReporter)
Set the metric reporter typeVitamMetricsConfiguration
setMetricReporterHosts(java.util.List<java.lang.String> metricReporterHosts)
Set the metric reporter hostsVitamMetricsConfiguration
setMetricReporterInterval(int metricReporterInterval)
Set the metric reporter intervalVitamMetricsConfiguration
setMetricReporterIntervalUnit(java.util.concurrent.TimeUnit metricReporterIntervalUnit)
Set the metric reporter interval unitVitamMetricsConfiguration
setMetricsJVM(boolean metricsJVM)
Set whether or not JVM metrics should be activatedVitamMetricsConfiguration
setMetricsRest(boolean metricsRest)
Set whether or not REST metrics should be activated
-
-
-
Method Detail
-
hasMetricsRest
public boolean hasMetricsRest()
Determines whether or not REST metrics should be activated- Returns:
- boolean
-
setMetricsRest
public VitamMetricsConfiguration setMetricsRest(boolean metricsRest)
Set whether or not REST metrics should be activated- Parameters:
metricsRest
-- Returns:
- VitamMetricsConfiguration
-
hasMetricsJVM
public boolean hasMetricsJVM()
Determines whether or not JVM metrics should be activated- Returns:
- boolean
-
setMetricsJVM
public VitamMetricsConfiguration setMetricsJVM(boolean metricsJVM)
Set whether or not JVM metrics should be activated- Parameters:
metricsJVM
-- Returns:
- VitamMetricsConfiguration
-
getMetricReporter
public VitamMetricsReporterType getMetricReporter()
Get the metric reporter type- Returns:
- VitamMetricsReporterType
-
setMetricReporter
public VitamMetricsConfiguration setMetricReporter(VitamMetricsReporterType metricReporter)
Set the metric reporter type- Parameters:
metricReporter
-- Returns:
- VitamMetricsConfiguration
-
getMetricReporterHosts
public java.lang.String[] getMetricReporterHosts()
Get the metric reporter host- Returns:
- String[]
-
setMetricReporterHosts
public VitamMetricsConfiguration setMetricReporterHosts(java.util.List<java.lang.String> metricReporterHosts)
Set the metric reporter hosts- Parameters:
metricReporterHosts
-- Returns:
- VitamMetricsConfiguration
-
getMetricLogLevel
public VitamLogLevel getMetricLogLevel()
Get the metric log level- Returns:
- VitamLogLevel
-
setMetricLogLevel
public VitamMetricsConfiguration setMetricLogLevel(VitamLogLevel metricLogLevel)
Set the metric log level- Parameters:
metricLogLevel
-- Returns:
- VitamMetricsConfiguration
-
getMetricReporterInterval
public int getMetricReporterInterval()
Get the metric reporter interval- Returns:
- int
-
setMetricReporterInterval
public VitamMetricsConfiguration setMetricReporterInterval(int metricReporterInterval)
Set the metric reporter interval- Parameters:
metricReporterInterval
-- Returns:
- VitamMetricsConfiguration
-
getMetricReporterIntervalUnit
public java.util.concurrent.TimeUnit getMetricReporterIntervalUnit()
Get the metric reporter interval unit- Returns:
- TimeUnit
-
setMetricReporterIntervalUnit
public VitamMetricsConfiguration setMetricReporterIntervalUnit(java.util.concurrent.TimeUnit metricReporterIntervalUnit)
Set the metric reporter interval unit- Parameters:
metricReporterIntervalUnit
-- Returns:
- VitamMetricsConfiguration
-
isEnableCountInputBytesMetrics
public boolean isEnableCountInputBytesMetrics()
-
setEnableCountInputBytesMetrics
public void setEnableCountInputBytesMetrics(boolean enableCountInputBytesMetrics)
-
isEnableCountOutputBytesMetrics
public boolean isEnableCountOutputBytesMetrics()
-
setEnableCountOutputBytesMetrics
public void setEnableCountOutputBytesMetrics(boolean enableCountOutputBytesMetrics)
-
-