|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.speedmanager.impl.v2.SMConst
public class SMConst
Created on Jul 18, 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.
Field Summary | |
---|---|
static int |
MIN_DOWNLOAD_BYTES_PER_SEC
|
static int |
MIN_UPLOAD_BYTES_PER_SEC
|
static int |
RATE_UNLIMITED
|
static int |
START_DOWNLOAD_RATE_MAX
|
static int |
START_UPLOAD_RATE_MAX
|
Method Summary | |
---|---|
static int |
calculateMinDownload(int maxBytesPerSec)
|
static int |
calculateMinUpload(int maxBytesPerSec)
Rule: Min value is alway 10% of max, but not below 5k. |
static int |
checkForMinDownloadValue(int rateBytesPerSec)
|
static int |
checkForMinUploadValue(int rateBytesPerSec)
No limit should go below 5k bytes/sec. |
static SpeedManagerLimitEstimate |
filterEstimate(SpeedManagerLimitEstimate estimate,
int startValue)
Early in the search process the ping-mapper can give estimates that are too low due to a lack of information. |
static int |
filterLimit(int bytesPerSec,
int startValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int START_DOWNLOAD_RATE_MAX
public static final int START_UPLOAD_RATE_MAX
public static final int MIN_UPLOAD_BYTES_PER_SEC
public static final int MIN_DOWNLOAD_BYTES_PER_SEC
public static final int RATE_UNLIMITED
Method Detail |
---|
public static int checkForMinUploadValue(int rateBytesPerSec)
rateBytesPerSec
- -
public static int checkForMinDownloadValue(int rateBytesPerSec)
public static int calculateMinUpload(int maxBytesPerSec)
maxBytesPerSec
- -
public static int calculateMinDownload(int maxBytesPerSec)
public static SpeedManagerLimitEstimate filterEstimate(SpeedManagerLimitEstimate estimate, int startValue)
estimate
- - download rate estimate.startValue
- - starting upload/download value.
public static int filterLimit(int bytesPerSec, int startValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |