Class DaemonOperation

  • public class DaemonOperation
    extends Operation
    This operation is the central part of the daemon. It can manage many different WatchOperations and exposes a web socket server to control and query the daemon. It furthermore offers a file-based control server to stop and reload the daemon.

    When started via execute(), the operation starts the following core components:

    • The WatchServer starts a WatchOperation for every folder registered in the daemon.xml file. It can be reloaded via the syd reload command.
    • The WebServer starts a websocket and allows clients (e.g. GUI, Web) to control the daemon (if authenticated). TODO [medium] This is not yet implemented!
    • The ControlServer creates and watches the daemon control file which allows the syd shell/batch script to write reload/shutdown commands.