Class SampleValueConverter

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

    public class SampleValueConverter
    extends java.lang.Object
    implements java.util.function.Function<org.openstack4j.model.telemetry.Sample,​com.elastisys.autoscaler.core.api.types.MetricValue>
    Converts between OpenStack Ceilometer Sample to MetricValue.
    • Constructor Summary

      Constructors 
      Constructor Description
      SampleValueConverter​(java.lang.String meter)
      Creates a new instance bound to the given meter name.
    • 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.Sample sample)  
      • 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

      • SampleValueConverter

        public SampleValueConverter​(java.lang.String meter)
        Creates a new instance bound to the given meter name.
        Parameters:
        meter - The name of the meter.
    • Method Detail

      • apply

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