public class StatSummarizer extends Object implements Runnable, ClientApp
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATABASES |
Constructor and Description |
---|
StatSummarizer(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
The display name of the ClientApp, used in user interfaces.
|
List<SummaryListener> |
getListeners()
List of SummaryListener instances
|
String |
getName()
The generic name of the ClientApp, used for registration,
e.g.
|
ClientAppState |
getState()
The current state of the ClientApp.
|
boolean |
getXML(Rate rate,
OutputStream out) |
static StatSummarizer |
instance() |
static StatSummarizer |
instance(I2PAppContext ctx) |
static boolean |
isDisabled(I2PAppContext ctx) |
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) void |
setDisabled()
Disable graph generation until restart
See SummaryRenderer.render()
|
(package private) static void |
setDisabled(I2PAppContext ctx)
Disable graph generation until restart
See SummaryRenderer.render()
|
void |
shutdown(String[] args)
Does nothing, we aren't tracked
|
void |
startup()
Does nothing, we aren't tracked
|
public static final String DEFAULT_DATABASES
public StatSummarizer(RouterContext ctx)
public static StatSummarizer instance()
public static StatSummarizer instance(I2PAppContext ctx)
public static boolean isDisabled(I2PAppContext ctx)
static void setDisabled(I2PAppContext ctx)
void setDisabled()
public void startup()
public void shutdown(String[] args)
public ClientAppState getState()
ClientApp
public String getName()
ClientApp
public String getDisplayName()
ClientApp
getDisplayName
in interface ClientApp
public 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 nowIOException
@Deprecated 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 nowIOException