|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AlternateLocation
This interface defines classes that encapsulate the data for an alternate resource location, as specified in HUGE v0.93. This also provides utility methods for such operations as comparing alternate locations based on the date they were stored. Firewalled hosts can also be alternate locations, although the format is slightly different.
| Field Summary | |
|---|---|
static String |
ALT_VENDOR
The vendor to use. |
static int |
MESH_LEGACY
|
static int |
MESH_PING
The three types of medium altlocs travel through |
static int |
MESH_RESPONSE
|
| Method Summary | |
|---|---|
boolean |
canBeSent(int meshType)
|
boolean |
canBeSentAny()
|
AlternateLocation |
createClone()
could return null |
RemoteFileDesc |
createRemoteFileDesc(long size,
RemoteFileDescFactory remoteFileDescFactory)
Creates a new RemoteFileDesc from this AlternateLocation |
int |
getCount()
Accessor to find if this has been demoted |
URN |
getSHA1Urn()
Accessor for the SHA1 urn for this AlternateLocation. |
void |
increment()
increment the count. |
boolean |
isDemoted()
package access, accessor to the value of _demoted |
boolean |
isMe()
|
void |
send(long now,
int meshType)
|
| Methods inherited from interface com.limegroup.gnutella.http.HTTPHeaderValue |
|---|
httpStringValue |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final String ALT_VENDOR
static final int MESH_PING
static final int MESH_LEGACY
static final int MESH_RESPONSE
| Method Detail |
|---|
URN getSHA1Urn()
int getCount()
boolean isDemoted()
RemoteFileDesc createRemoteFileDesc(long size,
RemoteFileDescFactory remoteFileDescFactory)
size - the size of the file for the new RemoteFileDesc
-- this is necessary to make sure the download bucketing works
correctly
boolean isMe()
void increment()
demoteAlternateLocation createClone()
void send(long now,
int meshType)
boolean canBeSent(int meshType)
boolean canBeSentAny()
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||