Examples of countReports()


Examples of freenet.support.math.RunningAverage.countReports()

  public synchronized void successfulBlockReceive(boolean realTimeFlag, boolean isLocal) {
    RunningAverage blockTransferPSuccess = realTimeFlag ? blockTransferPSuccessRT : blockTransferPSuccessBulk;
    blockTransferPSuccess.report(1.0);
    if(isLocal)
      blockTransferPSuccessLocal.report(1.0);
    if(logMINOR) Logger.minor(this, "Successful receives: "+blockTransferPSuccess.currentValue()+" count="+blockTransferPSuccess.countReports()+" realtime="+realTimeFlag);
  }

  public synchronized void failedBlockReceive(boolean normalFetch, boolean timeout, boolean realTimeFlag, boolean isLocal) {
    if(normalFetch) {
      blockTransferFailTimeout.report(timeout ? 1.0 : 0.0);
View Full Code Here

Examples of freenet.support.math.RunningAverage.countReports()

    }
    RunningAverage blockTransferPSuccess = realTimeFlag ? blockTransferPSuccessRT : blockTransferPSuccessBulk;
    blockTransferPSuccess.report(0.0);
    if(isLocal)
      blockTransferPSuccessLocal.report(0.0);
    if(logMINOR) Logger.minor(this, "Successful receives: "+blockTransferPSuccess.currentValue()+" count="+blockTransferPSuccess.countReports()+" realtime="+realTimeFlag);
  }

  public void reportIncomingRequestLocation(double loc) {
    assert((loc > 0) && (loc < 1.0));
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgMandatoryBackoffTimesRT) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgMandatoryBackoffTimesRT.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgMandatoryBackoffTimesBulk) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgMandatoryBackoffTimesBulk.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgRoutingBackoffTimesRT) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgRoutingBackoffTimesRT.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgRoutingBackoffTimesBulk) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgRoutingBackoffTimesBulk.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgTransferBackoffTimesRT) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgTransferBackoffTimesRT.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

      int i = 0;

      synchronized (avgTransferBackoffTimesBulk) {
        for (Map.Entry<String, TrivialRunningAverage> entry : avgTransferBackoffTimesBulk.entrySet()) {
          TrivialRunningAverage avg = entry.getValue();
          entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
        }
      }

      Arrays.sort(entries);
      return entries;
View Full Code Here

Examples of freenet.support.math.TrivialRunningAverage.countReports()

    int i = 0;

    synchronized(avgDatabaseJobExecutionTimes) {
      for(Map.Entry<String, TrivialRunningAverage> entry : avgDatabaseJobExecutionTimes.entrySet()) {
        TrivialRunningAverage avg = entry.getValue();
        entries[i++] = new TimedStats(entry.getKey(), avg.countReports(), (long) avg.currentValue(), (long) avg.totalValue());
      }
    }

    Arrays.sort(entries);
    return entries;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.