LimeWire Consolidated API

com.limegroup.gnutella.dht.db
Interface AltLocValue

All Superinterfaces:
DHTValue, Serializable
All Known Implementing Classes:
AbstractAltLocValue

public interface AltLocValue
extends DHTValue, Serializable

Defines an interface of an alternative location DHT value.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.limewire.mojito.db.DHTValue
DHTValue.EmptyValue
 
Field Summary
 
Fields inherited from interface org.limewire.mojito.db.DHTValue
EMPTY_VALUE
 
Method Summary
 long getFileSize()
          The length of the file
 byte[] getGUID()
          The GUID of the AltLoc
 int getPort()
          The (Gnutella) Port of the AltLoc
 byte[] getRootHash()
          The TigerTree root hash
 DHTValueType getValueType()
          Returns the type of the value.
 Version getVersion()
          Returns the version of the value.
 boolean isFirewalled()
          Returns true if the AltLoc is firewalled
 int size()
          Returns the size of the value payload in byte
 boolean supportsTLS()
           
 
Methods inherited from interface org.limewire.mojito.db.DHTValue
getValue, write
 

Method Detail

getVersion

Version getVersion()
Description copied from interface: DHTValue
Returns the version of the value.

Specified by:
getVersion in interface DHTValue

getValueType

DHTValueType getValueType()
Description copied from interface: DHTValue
Returns the type of the value.

Specified by:
getValueType in interface DHTValue

size

int size()
Description copied from interface: DHTValue
Returns the size of the value payload in byte

Specified by:
size in interface DHTValue

getGUID

byte[] getGUID()
The GUID of the AltLoc


getPort

int getPort()
The (Gnutella) Port of the AltLoc


getFileSize

long getFileSize()
The length of the file


getRootHash

byte[] getRootHash()
The TigerTree root hash


isFirewalled

boolean isFirewalled()
Returns true if the AltLoc is firewalled


supportsTLS

boolean supportsTLS()
Returns:
true if the alternative location supports TLS

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.