|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface outlines the basic functionality for a class that performs uploads.
Field Summary | |
static int |
BROWSE_HOST
|
static int |
COMPLETE
|
static int |
CONNECTING
|
static int |
FILE_NOT_FOUND
|
static int |
FREELOADER
|
static int |
INTERRUPTED
|
static int |
LIMIT_REACHED
|
static int |
MALFORMED_REQUEST
|
static int |
PUSH_PROXY
|
static int |
QUEUED
|
static int |
UNAVAILABLE_RANGE
|
static int |
UPDATE_FILE
|
static int |
UPLOADING
|
Method Summary | |
int |
amountUploaded()
returns the amount that of data that has been uploaded. |
int |
getAmountRequested()
returns the length of the requested size for uploading |
FileDesc |
getFileDesc()
Returns the FileDesc for this uploader -- the file that is being uploaded. |
java.lang.String |
getFileName()
returns the name of the file being uploaded. |
int |
getFileSize()
returns the length of the file being uploaded. |
int |
getGnutellaPort()
return the port of the gnutella-client host (not the HTTP port) |
java.lang.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. |
int |
getLastTransferState()
Returns the last transfer state of this uploader. |
HTTPRequestMethod |
getMethod()
returns the current request method. |
int |
getQueuePosition()
Returns the current queue position if queued. |
int |
getState()
Returns the current state of this uploader. |
int |
getTotalAmountUploaded()
Returns the amount of data that this uploader and all previous uploaders exchanging this file have uploaded. |
java.lang.String |
getUserAgent()
return the userAgent |
boolean |
isBrowseHostEnabled()
returns true if browse host is enabled, false if it is not. |
boolean |
isChatEnabled()
returns true if chat for the host is on, false if it is not. |
boolean |
isHeaderParsed()
return whether or not the headers have been parsed |
boolean |
isInactive()
Returns whether or not the uploader is in an inactive state. |
void |
setState(int state)
Sets the state of this uploader. |
void |
stop()
Stops this upload. |
boolean |
supportsQueueing()
|
void |
writeResponse()
|
Methods inherited from interface com.limegroup.gnutella.BandwidthTracker |
getAverageBandwidth, getMeasuredBandwidth, measureBandwidth |
Field Detail |
public static final int CONNECTING
public static final int FREELOADER
public static final int LIMIT_REACHED
public static final int UPLOADING
public static final int COMPLETE
public static final int INTERRUPTED
public static final int FILE_NOT_FOUND
public static final int BROWSE_HOST
public static final int QUEUED
public static final int UPDATE_FILE
public static final int MALFORMED_REQUEST
public static final int PUSH_PROXY
public static final int UNAVAILABLE_RANGE
Method Detail |
public void stop()
public java.lang.String getFileName()
public int getFileSize()
public int getAmountRequested()
public FileDesc getFileDesc()
public int getIndex()
public int amountUploaded()
public int getTotalAmountUploaded()
public java.lang.String getHost()
public int getState()
public int getLastTransferState()
public void setState(int state)
public void writeResponse() throws java.io.IOException
java.io.IOException
public boolean isChatEnabled()
public boolean isBrowseHostEnabled()
public int getGnutellaPort()
public java.lang.String getUserAgent()
public boolean isHeaderParsed()
public boolean supportsQueueing()
public HTTPRequestMethod getMethod()
public int getQueuePosition()
public boolean isInactive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |