Class InfluxdbMetricStreamerConfig
- java.lang.Object
-
- com.elastisys.autoscaler.metricstreamers.influxdb.config.InfluxdbMetricStreamerConfig
-
public class InfluxdbMetricStreamerConfig extends java.lang.ObjectRepresents a configuration for theInfluxdbMetricStreamer.- See Also:
InfluxdbMetricStreamer
-
-
Constructor Summary
Constructors Constructor Description InfluxdbMetricStreamerConfig(java.lang.String host, int port, SecurityConfig security, com.elastisys.scale.commons.json.types.TimeInterval pollInterval, java.util.List<MetricStreamDefinition> metricStreams)Creates anInfluxdbMetricStreamerConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetHost()InfluxDB server host name/IP address.java.util.List<MetricStreamDefinition>getMetricStreams()The collection of publishedMetricStreams.com.elastisys.scale.commons.json.types.TimeIntervalgetPollInterval()The polling interval for metric streams.intgetPort()InfluxDB server port.java.util.Optional<SecurityConfig>getSecurity()Security settings for connecting with the server.inthashCode()java.lang.StringtoString()voidvalidate()
-
-
-
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)Creates anInfluxdbMetricStreamerConfig.- 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 publishedMetricStreams. May benull.
-
-
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 publishedMetricStreams.- Returns:
-
validate
public void validate() throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-