|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.dht.db.AbstractAltLocValue
public abstract class AbstractAltLocValue
An implementation of DHTValue for for Gnutella Alternate Locations
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.limewire.mojito.db.DHTValue |
|---|
DHTValue.EmptyValue |
| Field Summary | |
|---|---|
static DHTValueType |
ALT_LOC
DHTValueType for AltLocs |
protected Version |
version
|
static Version |
VERSION
Version of AltLocDHTValue |
static Version |
VERSION_ONE
|
| Fields inherited from interface org.limewire.mojito.db.DHTValue |
|---|
EMPTY_VALUE |
| Constructor Summary | |
|---|---|
AbstractAltLocValue(Version version)
|
|
| Method Summary | |
|---|---|
abstract long |
getFileSize()
The length of the file |
abstract byte[] |
getGUID()
The GUID of the AltLoc |
abstract int |
getPort()
The (Gnutella) Port of the AltLoc |
abstract byte[] |
getRootHash()
The TigerTree root hash |
DHTValueType |
getValueType()
Returns the type of the value. |
Version |
getVersion()
Returns the version of the value. |
abstract boolean |
isFirewalled()
Returns true if the AltLoc is firewalled |
protected static byte[] |
serialize(AbstractAltLocValue value)
A helper method to serialize AltLocValues |
int |
size()
Returns the size of the value payload in byte |
abstract boolean |
supportsTLS()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.limewire.mojito.db.DHTValue |
|---|
getValue, write |
| Field Detail |
|---|
public static final DHTValueType ALT_LOC
public static final Version VERSION_ONE
public static final Version VERSION
protected final Version version
| Constructor Detail |
|---|
public AbstractAltLocValue(Version version)
| Method Detail |
|---|
public Version getVersion()
DHTValue
getVersion in interface AltLocValuegetVersion in interface DHTValuepublic DHTValueType getValueType()
DHTValue
getValueType in interface AltLocValuegetValueType in interface DHTValuepublic int size()
DHTValue
size in interface AltLocValuesize in interface DHTValuepublic abstract byte[] getGUID()
AltLocValue
getGUID in interface AltLocValuepublic abstract int getPort()
AltLocValue
getPort in interface AltLocValuepublic abstract long getFileSize()
AltLocValue
getFileSize in interface AltLocValuepublic abstract byte[] getRootHash()
AltLocValue
getRootHash in interface AltLocValuepublic abstract boolean isFirewalled()
AltLocValue
isFirewalled in interface AltLocValuepublic abstract boolean supportsTLS()
supportsTLS in interface AltLocValuepublic String toString()
toString in class Objectprotected static byte[] serialize(AbstractAltLocValue value)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||