public class StatisticGraph extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StatisticGraph.GraphType |
| Constructor and Description |
|---|
StatisticGraph(JmxConnection connection,
Timer timer) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createGraphAsPng(Date start,
Date end,
org.jrobin.graph.RrdGraphDefTemplate graphTemplate) |
byte[] |
createGraphAsPng(long time,
String type)
Create a graph of the last
time seconds. |
MBeanServerConnection |
getMbsc() |
MemoryMXBean |
getMemory() |
protected long |
getSessions(MBeanServerConnection mbsc) |
boolean |
isStarted() |
void |
reset() |
void |
setDataFileName(String name) |
void |
setRefreshPeriod(long statRefreshPeriod)
Sets the refresh period for statistics in milliseconds.
|
void |
start() |
void |
stop() |
boolean |
updateDb()
Returns
true if update has been successfully done. |
public StatisticGraph(JmxConnection connection, Timer timer) throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException, org.jrobin.core.RrdException
AttributeNotFoundExceptionInstanceNotFoundExceptionMBeanExceptionReflectionExceptionIOExceptionorg.jrobin.core.RrdExceptionpublic void setRefreshPeriod(long statRefreshPeriod)
statRefreshPeriod.statRefreshPeriod - The statistics refresh period in seconds or -1 to
disabled refresh.public void reset()
protected long getSessions(MBeanServerConnection mbsc) throws AttributeNotFoundException, InstanceNotFoundException, MBeanException, ReflectionException, IOException
public boolean updateDb()
true if update has been successfully done.public byte[] createGraphAsPng(Date start, Date end, org.jrobin.graph.RrdGraphDefTemplate graphTemplate)
public byte[] createGraphAsPng(long time,
String type)
time seconds.time - public void setDataFileName(String name)
public void start()
public boolean isStarted()
public void stop()
public MBeanServerConnection getMbsc()
public MemoryMXBean getMemory() throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.