class NetDbRenderer extends Object
Constructor | Description |
---|---|
NetDbRenderer(RouterContext ctx) |
Modifier and Type | Method | Description |
---|---|---|
static double |
biLog2(BigInteger a) |
For debugging
http://forums.sun.com/thread.jspa?threadID=597652
|
void |
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-null
|
void |
renderStatusHTML(Writer out,
int pageSize,
int page,
int mode) |
public NetDbRenderer(RouterContext ctx)
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
page
- zero-basedrouterPrefix
- may be null. "." for our router onlyversion
- may be nullcountry
- may be nullfamily
- may be nullIOException
public void renderLeaseSetHTML(Writer out, boolean debug) throws IOException
debug
- IOException
public static double biLog2(BigInteger a)
public void renderStatusHTML(Writer out, int pageSize, int page, int mode) throws IOException
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfosIOException