Class CeilometerMetricStreamer

    • Constructor Detail

      • CeilometerMetricStreamer

        @Inject
        public CeilometerMetricStreamer​(org.slf4j.Logger logger,
                                        java.util.concurrent.ScheduledExecutorService executor,
                                        com.elastisys.scale.commons.eventbus.EventBus eventBus)
        Creates a new instance. The new instance will be in an unconfigured and stopped state.
        Parameters:
        logger - Logger to use.
        executor - Task execution service for performing work in separate threads.
        eventBus - The EventBus on which to send out collected MetricValues.
    • Method Detail

      • start

        public void start()
                   throws java.lang.IllegalStateException
        Specified by:
        start in interface com.elastisys.autoscaler.core.api.Service<CeilometerMetricStreamerConfig>
        Throws:
        java.lang.IllegalStateException
      • getStatus

        public com.elastisys.autoscaler.core.api.types.ServiceStatus getStatus()
        Specified by:
        getStatus in interface com.elastisys.autoscaler.core.api.Service<CeilometerMetricStreamerConfig>
      • getMetricStreams

        public java.util.List<com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStream> getMetricStreams()
        Specified by:
        getMetricStreams in interface com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStreamer<CeilometerMetricStreamerConfig>
      • getMetricStream

        public com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStream getMetricStream​(java.lang.String metricStreamId)
                                                                                                 throws java.lang.IllegalArgumentException
        Specified by:
        getMetricStream in interface com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStreamer<CeilometerMetricStreamerConfig>
        Throws:
        java.lang.IllegalArgumentException
      • fetch

        public void fetch()
                   throws com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStreamException,
                          java.lang.IllegalStateException
        Specified by:
        fetch in interface com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStreamer<CeilometerMetricStreamerConfig>
        Throws:
        com.elastisys.autoscaler.core.monitoring.metricstreamer.api.MetricStreamException
        java.lang.IllegalStateException