Package net.i2p.router
Class Banlist
java.lang.Object
net.i2p.router.Banlist
public class Banlist extends Object
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
Nested Classes Modifier and Type Class Description static classBanlist.Entry -
Field Summary
Fields Modifier and Type Field Description static longBANLIST_CLEANER_START_DELAYstatic longBANLIST_DURATION_FOREVERstatic longBANLIST_DURATION_MAXstatic longBANLIST_DURATION_MSDon't make this too long as the failure may be transient due to connection limits.static longBANLIST_DURATION_PARTIAL -
Constructor Summary
Constructors Constructor Description Banlist(RouterContext context) -
Method Summary
Modifier and Type Method Description booleanbanlistRouter(String reasonCode, Hash peer, String reason)ick have to put the reasonCode in the front to avoid ambiguitybooleanbanlistRouter(Hash peer)booleanbanlistRouter(Hash peer, String reason)booleanbanlistRouter(Hash peer, String reason, String transport)booleanbanlistRouter(Hash peer, String reason, String transport, boolean forever)booleanbanlistRouter(Hash peer, String reason, String reasonCode, String transport, long expireOn)So that we may specify an expirationbooleanbanlistRouterForever(Hash peer, String reason)booleanbanlistRouterForever(Hash peer, String reason, String reasonCode)Map<Hash,Banlist.Entry>getEntries()For BanlistRenderer in router console.intgetRouterCount()booleanisBanlisted(Hash peer)booleanisBanlisted(Hash peer, String transport)booleanisBanlistedForever(Hash peer)voidrenderStatusHTML(Writer out)Deprecated.moved to router consolevoidunbanlistRouter(Hash peer)voidunbanlistRouter(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:
- Constant Field Values
-
BANLIST_DURATION_MAX
public static final long BANLIST_DURATION_MAX- See Also:
- Constant Field Values
-
BANLIST_DURATION_PARTIAL
public static final long BANLIST_DURATION_PARTIAL- See Also:
- Constant Field Values
-
BANLIST_DURATION_FOREVER
public static final long BANLIST_DURATION_FOREVER- See Also:
- Constant Field Values
-
BANLIST_CLEANER_START_DELAY
public static final long BANLIST_CLEANER_START_DELAY- See Also:
- Constant Field Values
-
-
Constructor Details
-
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 nullexpireOn- absolute time, not a durationtransport- may be null- Since:
- 0.9.18
-
unbanlistRouter
-
unbanlistRouter
-
isBanlisted
-
isBanlisted
-
isBanlistedForever
-
renderStatusHTML
Deprecated.moved to router console- Throws:
IOException
-