class NetDbRenderer extends Object
Constructor and Description |
---|
NetDbRenderer(RouterContext ctx) |
Modifier and Type | Method and 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,
String routerPrefix,
String version,
String country,
String family,
String caps,
String ip,
String sybil,
int port,
SigType type,
String mtu,
String ipv6,
String ssucaps,
int cost)
One String must be non-null
|
void |
renderStatusHTML(Writer out,
int mode) |
public NetDbRenderer(RouterContext ctx)
public void renderRouterInfoHTML(Writer out, String routerPrefix, String version, String country, String family, String caps, String ip, String sybil, int port, SigType type, String mtu, String ipv6, String ssucaps, int cost) throws IOException
routerPrefix
- 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
- @since 0.7.14 sort by distance from us, display
median distance, and other stuff, useful when floodfillIOException
public static double biLog2(BigInteger a)
public void renderStatusHTML(Writer out, int mode) throws IOException
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfosIOException