|
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.AltLocValueFactoryImpl
public class AltLocValueFactoryImpl
Factory to create AltLocValues.
| Constructor Summary | |
|---|---|
AltLocValueFactoryImpl(NetworkManager networkManager,
ApplicationServices applicationServices)
|
|
| Method Summary | |
|---|---|
AltLocValue |
createAltLocValueForSelf(long fileSize,
byte[] ttroot)
Creates an alternative location value for this node. |
AltLocValue |
createDHTValue(DHTValueType type,
Version version,
byte[] value)
Creates a DHTValue. |
AltLocValue |
createFromData(Version version,
byte[] data)
Factory method to create AltLocValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public AltLocValueFactoryImpl(NetworkManager networkManager,
ApplicationServices applicationServices)
| Method Detail |
|---|
public AltLocValue createDHTValue(DHTValueType type,
Version version,
byte[] value)
throws DHTValueException
DHTValueFactoryDHTValue.
createDHTValue in interface AltLocValueFactorycreateDHTValue in interface DHTValueFactory<AltLocValue>type - The type of the valueversion - The version of the valuevalue - The actual value
DHTValueException
public AltLocValue createAltLocValueForSelf(long fileSize,
byte[] ttroot)
AltLocValueFactory
createAltLocValueForSelf in interface AltLocValueFactoryfileSize - size of the filettroot - root hash of the TigerTree
public AltLocValue createFromData(Version version,
byte[] data)
throws DHTValueException
createFromData in interface AltLocValueFactoryDHTValueException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||