LimeWire Consolidated API

com.limegroup.gnutella.statistics
Interface OutOfBandStatistics


public interface OutOfBandStatistics

A collection of statistics for out-of-band data.


Method Summary
 void addBypassedResponse(int numBypassed)
          Adds some number of bypassed responses.
 void addReceivedResponse(int numReceived)
          Adds some number of received responses.
 void addRequestedResponse(int numRequested)
          Adds some number of requested responses.
 void addSentQuery()
          Adds a single sent query.
 int getRequestedResponses()
          Returns the total number of requested responses.
 int getSampleSize()
          Returns the current sample size.
 double getSuccessRate()
           
 void increaseSampleSize()
          Increments the sample size by some amount.
 boolean isOOBEffectiveForMe()
           
 boolean isOOBEffectiveForProxy()
           
 boolean isSuccessRateGood()
           
 boolean isSuccessRateGreat()
           
 boolean isSuccessRateTerrible()
           
 

Method Detail

addRequestedResponse

void addRequestedResponse(int numRequested)
Adds some number of requested responses.


addBypassedResponse

void addBypassedResponse(int numBypassed)
Adds some number of bypassed responses.


addReceivedResponse

void addReceivedResponse(int numReceived)
Adds some number of received responses.


addSentQuery

void addSentQuery()
Adds a single sent query.


getRequestedResponses

int getRequestedResponses()
Returns the total number of requested responses.


getSampleSize

int getSampleSize()
Returns the current sample size.


increaseSampleSize

void increaseSampleSize()
Increments the sample size by some amount.


getSuccessRate

double getSuccessRate()
Returns:
a double from 0 to 100 that signifies the OOB success percentage.

isSuccessRateGood

boolean isSuccessRateGood()
Returns:
whether or not the success rate is good enough.

isSuccessRateGreat

boolean isSuccessRateGreat()
Returns:
whether or not the success rate is good enough for proxying.

isSuccessRateTerrible

boolean isSuccessRateTerrible()
Returns:
whether or not the success rate is terrible (less than 40%).

isOOBEffectiveForProxy

boolean isOOBEffectiveForProxy()
Returns:
A boolean if OOB queries have seemed ineffective, i.e. we've sent several but not received ANY results. Note that this is pessimistic and may shut off OOB even if it is working (i.e. if we've only done rare queries).

isOOBEffectiveForMe

boolean isOOBEffectiveForMe()
Returns:
A boolean if OOB queries have seemed ineffective, i.e. we've sent several but not received ANY results. Note that this is pessimistic and may shut off OOB even if it is working (i.e. if we've only done rare queries).

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.