Package net.i2p.router
Class Banlist
java.lang.Object
net.i2p.router.Banlist
Routers are banlisted only if none of our transports can talk to them
or their signed router info is completely screwy. Individual transports
manage their own unreachable lists and do not generally add to the overall
banlist.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
static final long
static final long
static final long
Don't make this too long as the failure may be transient due to connection limits.static final long
Buggy i2pd forkstatic final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
banlistRouter
(String reasonCode, Hash peer, String reason) ick have to put the reasonCode in the front to avoid ambiguityboolean
banlistRouter
(Hash peer) boolean
banlistRouter
(Hash peer, String reason) boolean
banlistRouter
(Hash peer, String reason, String transport) boolean
banlistRouter
(Hash peer, String reason, String transport, boolean forever) boolean
banlistRouter
(Hash peer, String reason, String reasonCode, String transport, long expireOn) So that we may specify an expirationboolean
banlistRouterForever
(Hash peer, String reason) boolean
banlistRouterForever
(Hash peer, String reason, String reasonCode) For BanlistRenderer in router console.int
boolean
isBanlisted
(Hash peer) boolean
isBanlisted
(Hash peer, String transport) boolean
isBanlistedForever
(Hash peer) void
renderStatusHTML
(Writer out) Deprecated.moved to router consolevoid
unbanlistRouter
(Hash peer) void
unbanlistRouter
(Hash peer, String transport)
-
Field Details
-
BANLIST_DURATION_MS
public static final long BANLIST_DURATION_MSDon't make this too long as the failure may be transient due to connection limits.- See Also:
-
BANLIST_DURATION_MAX
public static final long BANLIST_DURATION_MAX- See Also:
-
BANLIST_DURATION_PARTIAL
public static final long BANLIST_DURATION_PARTIAL- See Also:
-
BANLIST_DURATION_FOREVER
public static final long BANLIST_DURATION_FOREVER- See Also:
-
BANLIST_DURATION_NO_NETWORK
public static final long BANLIST_DURATION_NO_NETWORKBuggy i2pd fork- Since:
- 0.9.52
- See Also:
-
BANLIST_DURATION_LOCALHOST
public static final long BANLIST_DURATION_LOCALHOST- See Also:
-
-
Constructor Details
-
Banlist
-
-
Method Details
-
getRouterCount
public int getRouterCount() -
getEntries
For BanlistRenderer in router console. Note - may contain expired entries. -
banlistRouter
-
banlistRouter
-
banlistRouter
ick have to put the reasonCode in the front to avoid ambiguity -
banlistRouter
-
banlistRouterForever
-
banlistRouterForever
-
banlistRouter
-
banlistRouter
public boolean banlistRouter(Hash peer, String reason, String reasonCode, String transport, long expireOn) So that we may specify an expiration- Parameters:
reason
- may be nullreasonCode
- may be nulltransport
- may be nullexpireOn
- absolute time, not a duration- Since:
- 0.9.18
-
unbanlistRouter
-
unbanlistRouter
-
isBanlisted
-
isBanlisted
-
isBanlistedForever
-
renderStatusHTML
Deprecated.moved to router console- Throws:
IOException
-