Interface TrafficUpdater

All Known Implementing Classes:
TrafficCounterService

public interface TrafficUpdater
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<org.joda.time.DateTime,Long>
    aggregateToDaily(Map<org.joda.time.DateTime,Long> histogram)
     
    static org.joda.time.DateTime
    getDayBucketStart(org.joda.time.DateTime observationTime)
     
    static org.joda.time.DateTime
    getHourBucketStart(org.joda.time.DateTime observationTime)
     
    void
    updateTraffic(org.joda.time.DateTime observationTime, NodeId nodeId, long inLastMinute, long outLastMinute, long decodedLastMinute)
     
  • Method Details

    • updateTraffic

      void updateTraffic(org.joda.time.DateTime observationTime, NodeId nodeId, long inLastMinute, long outLastMinute, long decodedLastMinute)
    • getDayBucketStart

      static org.joda.time.DateTime getDayBucketStart(org.joda.time.DateTime observationTime)
    • getHourBucketStart

      static org.joda.time.DateTime getHourBucketStart(org.joda.time.DateTime observationTime)
    • aggregateToDaily

      static Map<org.joda.time.DateTime,Long> aggregateToDaily(Map<org.joda.time.DateTime,Long> histogram)