|
||||||||||
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 rendering for graphs is in SummaryRenderer. To control memory, the number of simultaneous renderings is limited.
Field Summary | |
---|---|
(package private) static String |
DEFAULT_DATABASES
|
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) Set<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,
int end,
boolean showCredit)
This does the two-data bandwidth graph only. |
void |
run()
|
(package private) static void |
setDisabled()
Disable graph generation until restart See SummaryRenderer.render() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String DEFAULT_DATABASES
Constructor Detail |
---|
public StatSummarizer()
Method Detail |
---|
public static StatSummarizer instance()
public void run()
run
in interface Runnable
static boolean isDisabled()
static void setDisabled()
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, int end, boolean showCredit) throws IOException
end
- number of periods before now
IOException
Set<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 |