public class PreFlightTasks
extends Object
These are tasks that are run on server startup that may take a long time
to execute, such as recovery, upgrades and so on.
This implementation still needs some work, because of some of the refactoring
done regarding the NeoServer. Specifically, some of these tasks verify that
properties files exist and are valid. Other preflight tasks we might want to
add could be auto-generating config files if they don't exist and creating required
directories.
All of these except generating neo4j.conf depend on having
the configuration available. Eg. we can't both ensure that file exists within these
tests, while at the same time depending on that file existing.
Ensuring the config file exists (and potentially auto-generating it) is a problem.
Either this need to be split into tasks that have dependencies, and tasks that don't.
Although, it seems it is only this one edge case, so perhaps accepting that and adding
code to the bootstrapper to ensure the config file exists is acceptable.