Next: , Up: Ex-DB Design



4.1 The moz Program

The main program binary, moz, performs the following functions:

  1. Compiles MozBase.class using MozCompilation
  2. Compiles Storage.class using MozCompilation
  3. Creates a new, empty Storage object by hand
  4. Uses Storage to load itself into itself
  5. Starts the Storage object
  6. Asks the Storage object where to find the Server object (i.e. what the Server object's file number is).
  7. Tells storage to load the server object
  8. Starts the Server object
  9. Holds until the server is shut down
  10. Ask Storage to write everything to disk
  11. Writes the Storage object to disk by hand.