Class Main

java.lang.Object
com.framed.orchestrator.Main

public class Main extends Object
Config-driven launcher for a FRAMED deployment.

On startup it reads config/services.json and config/communication.json, builds the Transport and SocketEventBus described by the communication config, connects any configured peers, then instantiates the configured services (dispatchers, devices, writers, parsers and reactors) via the Manager. After instantiation it runs all registered deployment validators, installs a shutdown hook to stop the event bus and managed services cleanly, and blocks the main thread until the process is terminated.

  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Loads the configuration, builds the runtime, instantiates services and blocks until shutdown.
      Parameters:
      args - command-line arguments (currently unused)
      Throws:
      IOException - if the configuration files cannot be read