LimeWire Consolidated API

com.limegroup.gnutella.dht.db
Class AltLocModel

java.lang.Object
  extended by com.limegroup.gnutella.dht.db.AltLocModel
All Implemented Interfaces:
StorableModel

public class AltLocModel
extends Object
implements StorableModel

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

AltLocModel

@Inject
public AltLocModel(AltLocValueFactory altLocValueFactory,
                          com.google.inject.Provider<FileManager> fileManager,
                          com.google.inject.Provider<HashTreeCache> tigerTreeCache)
Method Detail

getStorables

public Collection<Storable> getStorables()
Description copied from interface: StorableModel
Returns all Storables that need to be published now.

Specified by:
getStorables in interface StorableModel

handleStoreResult

public void handleStoreResult(Storable storable,
                              StoreResult result)
Description copied from interface: StorableModel
Called for every successful STORE.

Specified by:
handleStoreResult in interface StorableModel

handleContactChange

public void handleContactChange()
Description copied from interface: StorableModel
Notifies the StorableModel that the local Contact's contact information changed (Node ID, external Address).

Specified by:
handleContactChange in interface StorableModel

toString

public String toString()
Overrides:
toString in class Object

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.