|
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.AltLocModel
public class AltLocModel
Publishes the localhost as an alternate locations for rare files. Rare files are files that haven't been uploaded for a certain amount of time. There are various other ways to determinate the rareness of a file like using the number of query hits instead of upload attempts or even keeping track of the file activities over multiple sessions.
| Constructor Summary | |
|---|---|
AltLocModel(AltLocValueFactory altLocValueFactory,
com.google.inject.Provider<FileManager> fileManager,
com.google.inject.Provider<HashTreeCache> tigerTreeCache)
|
|
| Method Summary | |
|---|---|
Collection<Storable> |
getStorables()
Returns all Storables that need to be published now. |
void |
handleContactChange()
Notifies the StorableModel that the local Contact's
contact information changed (Node ID, external Address). |
void |
handleStoreResult(Storable storable,
StoreResult result)
Called for every successful STORE. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public AltLocModel(AltLocValueFactory altLocValueFactory,
com.google.inject.Provider<FileManager> fileManager,
com.google.inject.Provider<HashTreeCache> tigerTreeCache)
| Method Detail |
|---|
public Collection<Storable> getStorables()
StorableModelStorables that need to be published now.
getStorables in interface StorableModel
public void handleStoreResult(Storable storable,
StoreResult result)
StorableModel
handleStoreResult in interface StorableModelpublic void handleContactChange()
StorableModelStorableModel that the local Contact's
contact information changed (Node ID, external Address).
handleContactChange in interface StorableModelpublic String toString()
toString in class Object
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||