|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.data.RoutingKeyGenerator
public abstract class RoutingKeyGenerator
Component to manage the munging of hashes into routing keys - given a hash, perform some consistent transformation against it and return the result. This transformation is fed by the current "mod data". As of 0.9.16, this is essentially just an interface. Implementation moved to net.i2p.data.router.RouterKeyGenerator. No generator is available in I2PAppContext; you must be in RouterContext.
Constructor Summary | |
---|---|
RoutingKeyGenerator()
|
Method Summary | |
---|---|
static RoutingKeyGenerator |
getInstance()
Get the generator for this context. |
abstract long |
getLastChanged()
The version of the current (today's) mod data. |
abstract Hash |
getRoutingKey(Hash origKey)
Get the routing key for a key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoutingKeyGenerator()
Method Detail |
---|
public static RoutingKeyGenerator getInstance()
public abstract long getLastChanged()
public abstract Hash getRoutingKey(Hash origKey)
IllegalArgumentException
- if origKey is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |