Class VitamMetricsConfiguration


  • public final class VitamMetricsConfiguration
    extends java.lang.Object
    Class to use for reading the metrics configuration file.
    • Constructor Detail

      • VitamMetricsConfiguration

        public VitamMetricsConfiguration()
        DbConfiguration empty constructor for YAMLFactory
    • 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
      • 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)