Class ServerStatusSwitch

  • All Implemented Interfaces:
    Consumer<Server>

    public abstract class ServerStatusSwitch
    extends Object
    implements Consumer<Server>
    Function used to evaluate the server(-config) status. Implemented in a central place to ensure the right order of the if-then-else statements.

    The order when comparing the server(-config) status should be:

    1. pending
    2. boot errors
    3. failed
    4. admin mode
    5. starting
    6. suspended
    7. needs reload
    8. needs restart
    9. running
    10. stopped
    11. unknown
    • Constructor Detail

      • ServerStatusSwitch

        public ServerStatusSwitch​(ServerActions serverActions)