Package net.i2p.router.web.helpers
Class NetDbRenderer
- java.lang.Object
-
- net.i2p.router.web.helpers.NetDbRenderer
-
class NetDbRenderer extends Object
-
-
Constructor Summary
Constructors Constructor Description NetDbRenderer(RouterContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
biLog2(BigInteger a)
For debugging http://forums.sun.com/thread.jspa?threadID=597652void
renderLeaseSetHTML(Writer out, boolean debug)
void
renderRouterInfoHTML(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, SigType type, String mtu, String ipv6, String ssucaps, String tr, int cost)
One String must be non-nullvoid
renderStatusHTML(Writer out, int pageSize, int page, int mode)
-
-
-
Constructor Detail
-
NetDbRenderer
public NetDbRenderer(RouterContext ctx)
-
-
Method Detail
-
renderRouterInfoHTML
public void renderRouterInfoHTML(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, SigType type, String mtu, String ipv6, String ssucaps, String tr, int cost) throws IOException
One String must be non-null- Parameters:
page
- zero-basedrouterPrefix
- may be null. "." for our router onlyversion
- may be nullcountry
- may be nullfamily
- may be null- Throws:
IOException
-
renderLeaseSetHTML
public void renderLeaseSetHTML(Writer out, boolean debug) throws IOException
- Parameters:
debug
-- Throws:
IOException
- Since:
- 0.7.14 sort by distance from us, display median distance, and other stuff, useful when floodfill
-
biLog2
public static double biLog2(BigInteger a)
For debugging http://forums.sun.com/thread.jspa?threadID=597652- Since:
- 0.7.14
-
renderStatusHTML
public void renderStatusHTML(Writer out, int pageSize, int page, int mode) throws IOException
- Parameters:
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfos- Throws:
IOException
-
-