Class InfluxdbSystemHistorian
- java.lang.Object
-
- com.elastisys.autoscaler.systemhistorians.influxdb.InfluxdbSystemHistorian
-
- All Implemented Interfaces:
com.elastisys.autoscaler.core.api.Configurable<InfluxdbSystemHistorianConfig>,com.elastisys.autoscaler.core.api.Service<InfluxdbSystemHistorianConfig>,com.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorian<InfluxdbSystemHistorianConfig>
public class InfluxdbSystemHistorian extends java.lang.Object implements com.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorian<InfluxdbSystemHistorianConfig>
ASystemHistorianthat reportsAutoScalermetrics to an InfluxDB server.
-
-
Constructor Summary
Constructors Constructor Description InfluxdbSystemHistorian(java.util.UUID autoScalerUuid, java.lang.String autoScalerId, org.slf4j.Logger logger, java.util.concurrent.ScheduledExecutorService executor, com.elastisys.scale.commons.eventbus.EventBus eventBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(InfluxdbSystemHistorianConfig configuration)voidflush()InfluxdbSystemHistorianConfiggetConfiguration()java.lang.Class<InfluxdbSystemHistorianConfig>getConfigurationClass()com.elastisys.autoscaler.core.api.types.ServiceStatusgetStatus()voidonEvent(com.elastisys.autoscaler.core.monitoring.systemhistorian.api.types.SystemMetricEvent event)voidstart()voidstop()voidvalidate(InfluxdbSystemHistorianConfig configuration)
-
-
-
Constructor Detail
-
InfluxdbSystemHistorian
@Inject public InfluxdbSystemHistorian(@Named("Uuid") java.util.UUID autoScalerUuid, @Named("AutoScalerId") java.lang.String autoScalerId, org.slf4j.Logger logger, java.util.concurrent.ScheduledExecutorService executor, com.elastisys.scale.commons.eventbus.EventBus eventBus)
-
-
Method Detail
-
validate
public void validate(InfluxdbSystemHistorianConfig configuration) throws java.lang.IllegalArgumentException
- Specified by:
validatein interfacecom.elastisys.autoscaler.core.api.Configurable<InfluxdbSystemHistorianConfig>- Throws:
java.lang.IllegalArgumentException
-
configure
public void configure(InfluxdbSystemHistorianConfig configuration) throws java.lang.IllegalArgumentException
- Specified by:
configurein interfacecom.elastisys.autoscaler.core.api.Configurable<InfluxdbSystemHistorianConfig>- Throws:
java.lang.IllegalArgumentException
-
start
public void start() throws java.lang.IllegalStateException- Specified by:
startin interfacecom.elastisys.autoscaler.core.api.Service<InfluxdbSystemHistorianConfig>- Throws:
java.lang.IllegalStateException
-
stop
public void stop()
- Specified by:
stopin interfacecom.elastisys.autoscaler.core.api.Service<InfluxdbSystemHistorianConfig>
-
getStatus
public com.elastisys.autoscaler.core.api.types.ServiceStatus getStatus()
- Specified by:
getStatusin interfacecom.elastisys.autoscaler.core.api.Service<InfluxdbSystemHistorianConfig>
-
getConfiguration
public InfluxdbSystemHistorianConfig getConfiguration()
- Specified by:
getConfigurationin interfacecom.elastisys.autoscaler.core.api.Configurable<InfluxdbSystemHistorianConfig>
-
getConfigurationClass
public java.lang.Class<InfluxdbSystemHistorianConfig> getConfigurationClass()
- Specified by:
getConfigurationClassin interfacecom.elastisys.autoscaler.core.api.Configurable<InfluxdbSystemHistorianConfig>
-
onEvent
public void onEvent(com.elastisys.autoscaler.core.monitoring.systemhistorian.api.types.SystemMetricEvent event)
- Specified by:
onEventin interfacecom.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorian<InfluxdbSystemHistorianConfig>
-
flush
public void flush() throws com.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorianFlushException- Specified by:
flushin interfacecom.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorian<InfluxdbSystemHistorianConfig>- Throws:
com.elastisys.autoscaler.core.monitoring.systemhistorian.api.SystemHistorianFlushException
-
-