com.aelitis.azureus.core.speedmanager.impl.v2
Class PingSpaceMon

java.lang.Object
  extended by com.aelitis.azureus.core.speedmanager.impl.v2.PingSpaceMon

public class PingSpaceMon
extends Object

Created on Jul 16, 2007 Created by Alan Snyder Copyright (C) Azureus Software, Inc, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Constructor Summary
PingSpaceMon()
           
 
Method Summary
 void addListener(PSMonitorListener listener)
           
static SpeedManagerLimitEstimate getDownloadEstCapacity()
          Get the estimated download capacity from the SpeedManager.
static SpeedManagerLimitEstimate getDownloadLimit()
          Get the current estimated download limit from the ping mapper.
static SpeedManagerLimitEstimate getUploadEstCapacity()
           
static SpeedManagerLimitEstimate getUploadLimit(boolean persistent)
          Get the current estimated upload limit from the ping mapper.
 boolean removeListener(PSMonitorListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingSpaceMon

public PingSpaceMon()
Method Detail

addListener

public void addListener(PSMonitorListener listener)

removeListener

public boolean removeListener(PSMonitorListener listener)

getUploadLimit

public static SpeedManagerLimitEstimate getUploadLimit(boolean persistent)
Get the current estimated upload limit from the ping mapper.

Parameters:
- - true if the long-term persistent result should be used.
Returns:
- SpeedManagerLimitEstimate.

getUploadEstCapacity

public static SpeedManagerLimitEstimate getUploadEstCapacity()

getDownloadLimit

public static SpeedManagerLimitEstimate getDownloadLimit()
Get the current estimated download limit from the ping mapper.

Returns:
- SpeedManagerLimitEstimate

getDownloadEstCapacity

public static SpeedManagerLimitEstimate getDownloadEstCapacity()
Get the estimated download capacity from the SpeedManager.

Returns:
- SpeedManagerLimitEstimate