Class OpenTsdbMetricStreamerConfig

    • Field Detail

      • DEFAULT_POLL_INTERVAL

        public static final com.elastisys.scale.commons.json.types.TimeInterval DEFAULT_POLL_INTERVAL
        Default MetricStream polling interval.
    • Constructor Detail

      • OpenTsdbMetricStreamerConfig

        public OpenTsdbMetricStreamerConfig​(java.lang.String openTsdbHost,
                                            java.lang.Integer openTsdbPort,
                                            com.elastisys.scale.commons.json.types.TimeInterval pollInterval,
                                            java.util.List<OpenTsdbMetricStreamDefinition> metricStreams)
        Creates a new OpenTsdbMetricStreamerConfig with the specified configuration values.
        Parameters:
        openTsdbHost - The host name or IP address of the OpenTSDB server to use.
        openTsdbPort - The IP port number of the OpenTSDB server to use. May be null. Default: DEFAULT_OPENTSDB_PORT.
        pollInterval - The polling interval for metric streams. May be null. Default is .
        metricStreams - The collection of published MetricStreams. May be null.
    • Method Detail

      • getOpenTsdbHost

        public java.lang.String getOpenTsdbHost()
        Returns the host name or IP address of the OpenTSDB server to use.
        Returns:
      • getOpenTsdbPort

        public int getOpenTsdbPort()
        Returns the IP port number of the OpenTSDB server to use.
        Returns:
      • getPollInterval

        public com.elastisys.scale.commons.json.types.TimeInterval getPollInterval()
        Returns the polling interval for metric streams.
        Returns:
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        Validates the configuration (checks if there are any obvious errors).
        Throws:
        java.lang.IllegalArgumentException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object