Class NodeConfig


  • public final class NodeConfig
    extends Object
    The NodeConfig class defines the config. The node is built from this config. NodeConfig must be created using the NodeConfigBuilder.
    Author:
    pchretien
    • Method Detail

      • builder

        public static NodeConfigBuilder builder()
        Static method factory for NodeConfigBuilder
        Returns:
        NodeConfigBuilder
      • getBootConfig

        public BootConfig getBootConfig()
        Returns:
        the config of the boot
      • getModuleConfigs

        public List<ModuleConfig> getModuleConfigs()
        Returns:
        list of the configs of the modules
      • getComponentInitializerConfigs

        public List<ComponentInitializerConfig> getComponentInitializerConfigs()
        Returns:
        List of the config of the initializers
      • getAppName

        public String getAppName()
        An node is composed of multiple nodes. AppName is the common name that define the application as a whole. (ex: Facebook, Pharos...)
        Returns:
        the logical name of the app
      • getNodeId

        public String getNodeId()
        An node is composed of multiple nodes.
        Returns:
        the random uuid of a node
      • print

        public void print​(PrintStream out)
        Allows to print a short description of the config.
        Parameters:
        out - Out