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
- 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.
- Run the CreateXml() method which prints some code to the console and doesn't do anything to affect the main program currently.
- Run the setup() method.
##setup()
- Look in various places for a server config file.
- 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.
- Run the start() method.