Class StatisticValueConverter

  • All Implemented Interfaces:
    java.util.function.Function<org.openstack4j.model.telemetry.Statistics,​com.elastisys.autoscaler.core.api.types.MetricValue>

    public class StatisticValueConverter
    extends java.lang.Object
    implements java.util.function.Function<org.openstack4j.model.telemetry.Statistics,​com.elastisys.autoscaler.core.api.types.MetricValue>
    A Callable task that takes a Statistics, as input and converts to MetricValue.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.elastisys.autoscaler.core.api.types.MetricValue apply​(org.openstack4j.model.telemetry.Statistics input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • StatisticValueConverter

        public StatisticValueConverter​(java.lang.String meter,
                                       CeilometerFunction statistic)
    • Method Detail

      • apply

        public com.elastisys.autoscaler.core.api.types.MetricValue apply​(org.openstack4j.model.telemetry.Statistics input)
        Specified by:
        apply in interface java.util.function.Function<org.openstack4j.model.telemetry.Statistics,​com.elastisys.autoscaler.core.api.types.MetricValue>