|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.StatisticsManager
public class StatisticsManager
Maintain the statistics about the router
Field Summary | |
---|---|
static int |
DEFAULT_MAX_PUBLISHED_PEERS
|
static java.lang.String |
DEFAULT_PROP_PUBLISH_RANKINGS
|
static java.lang.String |
PROP_MAX_PUBLISHED_PEERS
|
static java.lang.String |
PROP_PUBLISH_RANKINGS
|
Constructor Summary | |
---|---|
StatisticsManager(RouterContext context)
|
Method Summary | |
---|---|
java.util.Properties |
publishStatistics()
Retrieve a snapshot of the statistics that should be published |
void |
renderStatusHTML(java.io.Writer out)
|
void |
restart()
Perform a soft restart. |
void |
shutdown()
Instruct the service that the router is shutting down and that it should do whatever is necessary to go down gracefully. |
void |
startup()
Instruct the service that it should start normal operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_PUBLISH_RANKINGS
public static final java.lang.String DEFAULT_PROP_PUBLISH_RANKINGS
public static final java.lang.String PROP_MAX_PUBLISHED_PEERS
public static final int DEFAULT_MAX_PUBLISHED_PEERS
Constructor Detail |
---|
public StatisticsManager(RouterContext context)
Method Detail |
---|
public void shutdown()
Service
shutdown
in interface Service
public void restart()
Service
restart
in interface Service
public void startup()
Service
startup
in interface Service
public java.util.Properties publishStatistics()
public void renderStatusHTML(java.io.Writer out)
renderStatusHTML
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |