|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.world.SystemMonitor
This class touches a file periodically, which an external process monitors to make sure the server is alive. The file-touch happens on a game timer, so the game scheduler must be working properly in order for the file to be touched. The game scheduler is the most fragile piece of the system, which makes it a good candidate for monitoring.
Method Summary | |
void |
checkFreeMem()
Workaround for HotSpot garbage collector bugs in 1.4.1 and 1.4.2. |
static void |
start()
Starts the monitor timer. |
void |
timerExpired()
Timer went off. |
java.lang.String |
toString()
Returns debugging string. |
static void |
writeShutdownFile()
Writes a file that says we shut down on purpose. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void start()
public void timerExpired()
timerExpired
in interface Timed
public java.lang.String toString()
public static void writeShutdownFile()
public void checkFreeMem()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |