Class PingSpaceMonitor


  • public class PingSpaceMonitor
    extends java.lang.Object
    • Field Detail

      • startTime

        long startTime
      • maxGoodPing

        final int maxGoodPing
      • minBadPing

        final int minBadPing
      • nBadPings

        int nBadPings
      • nGoodPings

        int nGoodPings
      • nNeutralPings

        int nNeutralPings
      • upNone

        int upNone
      • upLow

        int upLow
      • upMed

        int upMed
      • upHigh

        int upHigh
      • upAtLimit

        int upAtLimit
      • downNone

        int downNone
      • downLow

        int downLow
      • downMed

        int downMed
      • downHigh

        int downHigh
      • downAtLimit

        int downAtLimit
      • hasNewLimit

        boolean hasNewLimit
      • newLimit

        int newLimit
      • limitType

        int limitType
    • Constructor Detail

      • PingSpaceMonitor

        public PingSpaceMonitor​(int _maxGoodPing,
                                int _minBadPing,
                                TransferMode mode)
    • Method Detail

      • setCurrentTransferRates

        public void setCurrentTransferRates​(int downRate,
                                            int upRate)
        Parameters:
        downRate - -
        upRate - -
      • addToPingMapData

        public boolean addToPingMapData​(int lastMetricValue,
                                        TransferMode mode)
        Do a check and decide if the limits should be dropped.
        Parameters:
        lastMetricValue - -
        mode - - the TransferMode
        Returns:
        - true if the limits should be dropped.
      • checkForLowerLimits

        private boolean checkForLowerLimits()
      • hasNewLimit

        boolean hasNewLimit()
        True if we have a new limit.
        Returns:
        - true if there is a new limit.
      • getNewLimit

        public int getNewLimit()
      • limitType

        public int limitType()
      • resetNewLimit

        public void resetNewLimit()
        Call after getting new limits.