class NetDbRenderer extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NetDbRenderer.RAComparator
Sort by style, then host
|
Constructor and Description |
---|
NetDbRenderer(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
void |
renderLeaseSet(Writer out,
String hostname,
boolean debug)
Single LeaseSet
|
void |
renderLeaseSetHTML(Writer out,
boolean debug,
Hash client)
All the leasesets
|
void |
renderRouterInfoHTML(Writer out,
int pageSize,
int page,
String routerPrefix,
String version,
String country,
String family,
String caps,
String ip,
String sybil,
int port,
int highPort,
SigType type,
EncType etype,
String mtu,
String ipv6,
String ssucaps,
String tr,
int cost,
int icount)
At least one String must be non-null, non-empty
|
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, int highPort, SigType type, EncType etype, String mtu, String ipv6, String ssucaps, String tr, int cost, int icount) throws IOException
page
- zero-basedrouterPrefix
- may be null. "." for our router onlyversion
- may be nullcountry
- may be nullfamily
- may be nullhighPort
- if nonzero, a range from port to highPort inclusiveIOException
public void renderLeaseSetHTML(Writer out, boolean debug, Hash client) throws IOException
debug
- @since 0.7.14 sort by distance from us, display
median distance, and other stuff, useful when floodfillclient
- null for main db; non-null for client dbIOException
public void renderLeaseSet(Writer out, String hostname, boolean debug) throws IOException
IOException
public void renderStatusHTML(Writer out, int pageSize, int page, int mode) throws IOException
mode
- 0: charts only; 1: full routerinfos; 2: abbreviated routerinfos
mode 3: Same as 0 but sort countries by count
Codes greater than 16 are map codes * 16IOException