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);