Package io.vertigo.core.node.config
Class NodeConfig
- java.lang.Object
-
- io.vertigo.core.node.config.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeConfigBuilderbuilder()Static method factory for NodeConfigBuilderStringgetAppName()An node is composed of multiple nodes.BootConfiggetBootConfig()List<ComponentInitializerConfig>getComponentInitializerConfigs()Optional<String>getEndPoint()List<ModuleConfig>getModuleConfigs()StringgetNodeId()An node is composed of multiple nodes.voidprint(PrintStream out)Allows to print a short description of the config.
-
-
-
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
-
-