BlockfileNamingService
, EepGetNamingService
, MetaNamingService
public class DummyNamingService extends NamingService
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected static int |
BASE32_HASH_LENGTH |
|
protected static int |
CACHE_MAX_SIZE |
|
static int |
DEST_SIZE |
|
static java.lang.String |
PROP_B32 |
_context, _listeners, _log, _updaters, PROP_IMPL
修飾子 | コンストラクタ | 説明 |
---|---|---|
protected |
DummyNamingService(I2PAppContext context) |
The naming service should only be constructed and accessed through the
application context.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
protected static void |
clearCache() |
|
protected static Destination |
getCache(java.lang.String s) |
|
Destination |
lookup(java.lang.String hostname,
java.util.Properties lookupOptions,
java.util.Properties storedOptions) |
Same as lookup(hostname) but with in and out options
Note that whether this (and lookup(hostname)) resolve Base 32 addresses
in the form {52 chars}.b32.i2p is NamingService-specific.
|
protected static void |
putCache(java.lang.String s,
Destination d) |
Provide basic static caching for all services
|
protected static void |
removeCache(java.lang.String s) |
addDestination, addDestination, addNamingService, addNamingService, createInstance, export, export, getBase64Entries, getConfiguration, getEntries, getEntries, getName, getNames, getNames, getNamingServices, getParent, lookup, lookup, lookupAll, lookupAll, lookupBase32, lookupBase64, put, put, putAll, putIfAbsent, putIfAbsent, registerListener, registerUpdater, remove, remove, remove, remove, removeNamingService, requestUpdate, reverseLookup, reverseLookup, reverseLookup, reverseLookupAll, reverseLookupAll, reverseLookupAll, setConfiguration, shutdown, size, size, start, toString, unregisterListener, unregisterUpdater, update
protected static final int BASE32_HASH_LENGTH
public static final java.lang.String PROP_B32
protected static final int CACHE_MAX_SIZE
public static final int DEST_SIZE
protected DummyNamingService(I2PAppContext context)
public Destination lookup(java.lang.String hostname, java.util.Properties lookupOptions, java.util.Properties storedOptions)
NamingService
lookup
クラス内 NamingService
hostname
- mixed case as it could be a keylookupOptions
- input parameter, NamingService-specific, can be nullstoredOptions
- output parameter, NamingService-specific, any stored properties will be added if non-nullprotected static void putCache(java.lang.String s, Destination d)
s
- case-sensitive, could be a hostname or a full b64 stringprotected static Destination getCache(java.lang.String s)
s
- case-sensitive, could be a hostname or a full b64 stringprotected static void removeCache(java.lang.String s)
s
- case-sensitive, could be a hostname or a full b64 stringprotected static void clearCache()