|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Uploader
This interface outlines the basic functionality for a class that performs uploads.
A single instance should be reused for multiple chunks of a single file in an HTTP/1.1 session. However, multiple HTTPUploaders should be used for multiple files in a single HTTP/1.1 session.
| Nested Class Summary | |
|---|---|
static class |
Uploader.UploadStatus
|
| Nested classes/interfaces inherited from interface org.limewire.io.IpPort |
|---|
IpPort.IpComparator, IpPort.IpPortComparator |
| Nested classes/interfaces inherited from interface org.limewire.io.Address |
|---|
Address.EventType |
| Field Summary | |
|---|---|
static String |
BITTORRENT_UPLOAD
Marker string for bt-specific values. |
| Fields inherited from interface org.limewire.io.Connectable |
|---|
COMPARATOR, EMPTY_LIST, EMPTY_SET |
| Fields inherited from interface org.limewire.io.IpPort |
|---|
IP_COMPARATOR |
| Method Summary | |
|---|---|
long |
amountUploaded()
Returns the amount that of data that has been uploaded. |
String |
getCustomIconDescriptor()
|
File |
getFile()
Returns the file backing this uploader. |
FileDesc |
getFileDesc()
Returns the FileDesc of the file being uploaded. |
String |
getFileName()
returns the name of the file being uploaded. |
long |
getFileSize()
returns the length of the file being uploaded. |
int |
getGnutellaPort()
return the port of the gnutella-client host (not the HTTP port) |
String |
getHost()
returns the string representation of the IP Address of the host being uploaded to. |
int |
getIndex()
returns the index of the file being uploaded. |
Uploader.UploadStatus |
getLastTransferState()
Returns the last transfer state of this uploader. |
int |
getNumUploadConnections()
Returns the number of connections we are currently uplaoding to. |
int |
getQueuePosition()
Returns the current queue position if queued. |
Uploader.UploadStatus |
getState()
Returns the current state of this uploader. |
long |
getTotalAmountUploaded()
Returns the amount of data that this uploader and all previous uploaders exchanging this file have uploaded. |
UploadType |
getUploadType()
Returns the kind of upload this is (shared file, browse host, malformed request, etc..) |
URN |
getUrn()
Returns the URN for the file backing this uploader. |
String |
getUserAgent()
return the userAgent |
boolean |
isBrowseHostEnabled()
returns true if browse host is enabled, false if it is not. |
boolean |
isInactive()
Returns whether or not the uploader is in an inactive state. |
void |
stop()
Stops this upload. |
| Methods inherited from interface com.limegroup.gnutella.BandwidthTracker |
|---|
getAverageBandwidth, getMeasuredBandwidth, measureBandwidth |
| Methods inherited from interface org.limewire.io.Connectable |
|---|
isTLSCapable |
| Methods inherited from interface org.limewire.io.IpPort |
|---|
getAddress, getInetAddress, getInetSocketAddress, getPort |
| Methods inherited from interface org.limewire.io.Address |
|---|
equals, getAddressDescription, hashCode |
| Field Detail |
|---|
static final String BITTORRENT_UPLOAD
| Method Detail |
|---|
void stop()
String getFileName()
long getFileSize()
FileDesc getFileDesc()
int getIndex()
long amountUploaded()
getTotalAmountUploaded() for the entire amount
uploaded.
Note: This method was previously called "amountRead", but the name was changed to make more sense.
long getTotalAmountUploaded()
String getHost()
Uploader.UploadStatus getState()
Uploader.UploadStatus getLastTransferState()
boolean isBrowseHostEnabled()
int getGnutellaPort()
String getUserAgent()
int getQueuePosition()
boolean isInactive()
String getCustomIconDescriptor()
UploadType getUploadType()
File getFile()
URN getUrn()
int getNumUploadConnections()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||