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:
Dave Hoover
2008-03-24 21:11:30 +00:00
parent 49b893d933
commit 4d77995e06
@@ -187,11 +187,12 @@ public class PresentsServer
TimeBaseProvider.init(invmgr, omgr);
// queue up an interval which will generate reports
new Interval(omgr) {
_reportInterval = new Interval(omgr) {
public void expired () {
logReport(generateReport(System.currentTimeMillis(), true));
}
}.schedule(REPORT_INTERVAL, true);
};
_reportInterval.schedule(REPORT_INTERVAL, true);
}
/**
@@ -386,6 +387,9 @@ public class PresentsServer
protected void invokerDidShutdown ()
{
}
/** Our interval that generates "state of server" reports. */
protected Interval _reportInterval;
/** The time at which the server was started. */
protected static long _serverStartTime = System.currentTimeMillis();