Server Class load - rsanchez-wsu/jfiles GitHub Wiki

When the class is loaded, a JFiles server object is created as the new single instance and stored in instance.

##JFilesServer Creation method

  1. Run the Ensure database method this will purge the database and create it over from scratch (see database tutorials. Obvious this is not a good idea for a finished but here it prevents errors due to the state of the database.
  2. Run the CreateXml() method which prints some code to the console and doesn't do anything to affect the main program currently.
  3. Run the setup() method.

##setup()

  1. Look in various places for a server config file.
  2. Log a "maximum number of threads" from the config file(default 10). There is no indication that this does anything outside the setup method and there does not appear to be a maximum number of clients.
  3. Run the start() method.