|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.web.StatSummarizer
public class StatSummarizer
A thread started by RouterConsoleRunner that checks the configuration for stats to be tracked via jrobin, and adds or deletes RRDs as necessary. This also contains methods to generate xml or png image output. The actual png rendering code is here for the special dual-rate graph; the rendering for standard graphs is in SummaryRenderer. To control memory, the number of simultaneous renderings is limited.
Constructor Summary | |
---|---|
StatSummarizer()
|
Method Summary | |
---|---|
(package private) List<SummaryListener> |
getListeners()
list of SummaryListener instances |
boolean |
getXML(Rate rate,
OutputStream out)
|
static StatSummarizer |
instance()
|
(package private) static boolean |
isDisabled()
|
(package private) List<Rate> |
parseSpecs(String specs)
|
boolean |
renderPng(OutputStream out,
String templateFilename)
Deprecated. unused |
boolean |
renderPng(Rate rate,
OutputStream out)
|
boolean |
renderPng(Rate rate,
OutputStream out,
int width,
int height,
boolean hideLegend,
boolean hideGrid,
boolean hideTitle,
boolean showEvents,
int periodCount,
int end,
boolean showCredit)
This does the single data graphs. |
boolean |
renderRatePng(OutputStream out,
int width,
int height,
boolean hideLegend,
boolean hideGrid,
boolean hideTitle,
boolean showEvents,
int periodCount,
boolean showCredit)
This does the two-data bandwidth graph only. |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatSummarizer()
Method Detail |
---|
public static StatSummarizer instance()
public void run()
run
in interface Runnable
static boolean isDisabled()
List<SummaryListener> getListeners()
public boolean renderPng(Rate rate, OutputStream out) throws IOException
IOException
public boolean renderPng(Rate rate, OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, int end, boolean showCredit) throws IOException
end
- number of periods before now
IOException
public boolean renderPng(OutputStream out, String templateFilename) throws IOException
IOException
public boolean getXML(Rate rate, OutputStream out) throws IOException
IOException
public boolean renderRatePng(OutputStream out, int width, int height, boolean hideLegend, boolean hideGrid, boolean hideTitle, boolean showEvents, int periodCount, boolean showCredit) throws IOException
IOException
List<Rate> parseSpecs(String specs)
specs
- statName.period,statName.period,statName.period
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |