4.1 The moz Program
The main program binary, moz, performs the following functions:
- Compiles MozBase.class using MozCompilation
- Compiles Storage.class using MozCompilation
- Creates a new, empty Storage object by hand
- Uses Storage to load itself into itself
- Starts the Storage object
- Asks the Storage object where to find the Server object (i.e. what
the Server object's file number is).
- Tells storage to load the server object
- Starts the Server object
- Holds until the server is shut down
- Ask Storage to write everything to disk
- Writes the Storage object to disk by hand.