Class InfluxdbMetricStreamerConfig

    • Constructor Detail

      • InfluxdbMetricStreamerConfig

        public InfluxdbMetricStreamerConfig​(java.lang.String host,
                                            int port,
                                            SecurityConfig security,
                                            com.elastisys.scale.commons.json.types.TimeInterval pollInterval,
                                            java.util.List<MetricStreamDefinition> metricStreams)
        Parameters:
        host - InfluxDB server host name/IP address. Required.
        port - InfluxDB server port. Required.
        security - Security settings for connecting with the server. Optional. If left out, the InfluxDB server is assumed to run over HTTP and no client authentication will be used.
        pollInterval - The polling interval for metric streams.
        metricStreams - The collection of published MetricStreams. May be null.
    • Method Detail

      • getHost

        public java.lang.String getHost()
        InfluxDB server host name/IP address.
        Returns:
      • getPort

        public int getPort()
        InfluxDB server port.
        Returns:
      • getSecurity

        public java.util.Optional<SecurityConfig> getSecurity()
        Security settings for connecting with the server. Optional. If left out, the InfluxDB server is assumed to run over HTTP and no client authentication will be used.
        Returns:
      • getPollInterval

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

        public java.util.List<MetricStreamDefinition> getMetricStreams()
        The collection of published MetricStreams.
        Returns:
      • validate

        public void validate()
                      throws java.lang.IllegalArgumentException
        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