Store off a reference to the interval that generates our server reports so that subclasses can play with it if they want.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4979 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -187,11 +187,12 @@ public class PresentsServer
|
|||||||
TimeBaseProvider.init(invmgr, omgr);
|
TimeBaseProvider.init(invmgr, omgr);
|
||||||
|
|
||||||
// queue up an interval which will generate reports
|
// queue up an interval which will generate reports
|
||||||
new Interval(omgr) {
|
_reportInterval = new Interval(omgr) {
|
||||||
public void expired () {
|
public void expired () {
|
||||||
logReport(generateReport(System.currentTimeMillis(), true));
|
logReport(generateReport(System.currentTimeMillis(), true));
|
||||||
}
|
}
|
||||||
}.schedule(REPORT_INTERVAL, true);
|
};
|
||||||
|
_reportInterval.schedule(REPORT_INTERVAL, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -386,6 +387,9 @@ public class PresentsServer
|
|||||||
protected void invokerDidShutdown ()
|
protected void invokerDidShutdown ()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Our interval that generates "state of server" reports. */
|
||||||
|
protected Interval _reportInterval;
|
||||||
|
|
||||||
/** The time at which the server was started. */
|
/** The time at which the server was started. */
|
||||||
protected static long _serverStartTime = System.currentTimeMillis();
|
protected static long _serverStartTime = System.currentTimeMillis();
|
||||||
|
|||||||
Reference in New Issue
Block a user