|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UploadManager
Defines the requirements for classes that manage Gnutella uploads.
| Method Summary | |
|---|---|
float |
getLastMeasuredBandwidth()
Return the last value that was measured by BandwidthTracker.getMeasuredBandwidth(). |
int |
getNumQueuedUploads()
Returns the number of queued uploads. |
boolean |
hadSuccesfulUpload()
Returns true if this has ever successfully uploaded a file during this session. |
boolean |
isConnectedTo(InetAddress addr)
Returns true if any uploader is conneected to addr. |
boolean |
isServiceable()
Returns whether or not an upload request can be serviced immediately. |
boolean |
killUploadsForFileDesc(FileDesc fd)
Stops all uploads that are uploading fd. |
boolean |
mayBeServiceable()
Returns if an incoming query (not actual upload request) may be serviceable. |
int |
measuredUploadSpeed()
Returns the estimated upload speed in KILOBITS/s [sic] of the next transfer, assuming the client (i.e., downloader) has infinite |
void |
start()
Registers HttpRequestHandlers with acceptor. |
void |
stop()
Deregisters HttpRequestHandlers with acceptor. |
int |
uploadsInProgress()
Returns the number of uploads excluding forced uploads. |
| Methods inherited from interface com.limegroup.gnutella.BandwidthTracker |
|---|
getAverageBandwidth, getMeasuredBandwidth, measureBandwidth |
| Method Detail |
|---|
float getLastMeasuredBandwidth()
BandwidthTracker.getMeasuredBandwidth().
int getNumQueuedUploads()
int uploadsInProgress()
boolean hadSuccesfulUpload()
This method was added to adopt more of the BearShare QHD standard.
boolean isConnectedTo(InetAddress addr)
addr.
boolean isServiceable()
boolean killUploadsForFileDesc(FileDesc fd)
fd.
boolean mayBeServiceable()
int measuredUploadSpeed()
void start()
HttpRequestHandlers with acceptor.
void stop()
HttpRequestHandlers with acceptor.
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||