|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglassfrog.tools.MatchRebuilder
public class MatchRebuilder
This class is used to rebuild a match from a log file. This is in the event that there was a server crash, we need to rebuild a match from a log in order to save a serialized version of the match at the point of the log.
Constructor Summary | |
---|---|
MatchRebuilder()
Empty constructor |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Start the server from the command line. |
static Dealer |
restore(java.lang.String key)
Restore a match from the last state found in the log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatchRebuilder()
Method Detail |
---|
public static Dealer restore(java.lang.String key) throws java.io.FileNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
key
- The key we wish to recreate the serial file for.
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args)
args
- Command line args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |