Class MeterData


  • public class MeterData
    extends java.lang.Object
    A class representing the meter information stored in the meter store.
    • Constructor Summary

      Constructors 
      Constructor Description
      MeterData​(org.onosproject.net.meter.Meter meter, org.onosproject.net.meter.MeterFailReason reason)
      Builds up a meter data.
      MeterData​(org.onosproject.net.meter.Meter meter, org.onosproject.net.meter.MeterFailReason reason, org.onosproject.cluster.NodeId origin)
      Deprecated.
      in ONOS 2.2
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.onosproject.net.meter.Meter meter()  
      org.onosproject.cluster.NodeId origin()
      Deprecated.
      in ONOS 2.2
      java.util.Optional<org.onosproject.net.meter.MeterFailReason> reason()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MeterData

        @Deprecated
        public MeterData​(org.onosproject.net.meter.Meter meter,
                         org.onosproject.net.meter.MeterFailReason reason,
                         org.onosproject.cluster.NodeId origin)
        Deprecated.
        in ONOS 2.2
        Builds up a meter data.
        Parameters:
        meter - the meter
        reason - the reason of the failure
        origin - the node from which the request is originated
      • MeterData

        public MeterData​(org.onosproject.net.meter.Meter meter,
                         org.onosproject.net.meter.MeterFailReason reason)
        Builds up a meter data.
        Parameters:
        meter - the meter
        reason - the reason of the failure
    • Method Detail

      • meter

        public org.onosproject.net.meter.Meter meter()
      • reason

        public java.util.Optional<org.onosproject.net.meter.MeterFailReason> reason()
      • origin

        @Deprecated
        public org.onosproject.cluster.NodeId origin()
        Deprecated.
        in ONOS 2.2
        Returns the origin node.
        Returns:
        the node id of the origin node