Class OpenTsdbSystemHistorianConfig
- java.lang.Object
-
- com.elastisys.autoscaler.systemhistorians.opentsdb.config.OpenTsdbSystemHistorianConfig
-
public class OpenTsdbSystemHistorianConfig extends java.lang.ObjectConfiguration class for the OpenTSDBSystemHistorian.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_OPENTSDB_PORTDefault foropenTsdbPort.static com.elastisys.scale.commons.json.types.TimeIntervalDEFAULT_PUSH_INTERVALDefaultpushInterval.
-
Constructor Summary
Constructors Constructor Description OpenTsdbSystemHistorianConfig(java.lang.String openTsdbHost, java.lang.Integer openTsdbPort, com.elastisys.scale.commons.json.types.TimeInterval pushInterval)Creates a new instance with the specified configuration values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetOpenTsdbHost()Returns the hostname or IP address of the OpenTSDB server to use.intgetOpenTsdbPort()Returns the IP port number of the OpenTSDB server to use.com.elastisys.scale.commons.json.types.TimeIntervalgetPushInterval()Returns the time interval between two successive report attempts.inthashCode()java.lang.StringtoString()voidvalidate()Validates the configuration (checks if there are any obvious errors).
-
-
-
Field Detail
-
DEFAULT_PUSH_INTERVAL
public static final com.elastisys.scale.commons.json.types.TimeInterval DEFAULT_PUSH_INTERVAL
DefaultpushInterval.
-
DEFAULT_OPENTSDB_PORT
public static final int DEFAULT_OPENTSDB_PORT
Default foropenTsdbPort.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OpenTsdbSystemHistorianConfig
public OpenTsdbSystemHistorianConfig(java.lang.String openTsdbHost, java.lang.Integer openTsdbPort, com.elastisys.scale.commons.json.types.TimeInterval pushInterval)Creates a new instance with the specified configuration values- Parameters:
openTsdbHost- The hostname or IP address of the OpenTSDB server to use.openTsdbPort- The IP port number of the OpenTSDB server to use. May benull. Default:DEFAULT_OPENTSDB_PORT.pushInterval- The time interval between two successive report attempts. May benull. Default:DEFAULT_PUSH_INTERVAL.
-
-
Method Detail
-
getOpenTsdbHost
public java.lang.String getOpenTsdbHost()
Returns the hostname 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:
-
getPushInterval
public com.elastisys.scale.commons.json.types.TimeInterval getPushInterval()
Returns the time interval between two successive report attempts.- Returns:
-
validate
public void validate() throws java.lang.IllegalArgumentExceptionValidates the configuration (checks if there are any obvious errors).- Throws:
java.lang.IllegalArgumentException- Thrown if there are obvious errors, such as missing values the values are out of permissible ranges.
-
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
-
-