Class NodeConfig


public class NodeConfig extends AbstractLockable<NodeConfig>
Configuration settings related to a single node in the cluster. So far, we are only interested in the name of the node so that we can connect to it and execute commands via SSH.
Since:
1.0
Author:
nicklas
  • Field Details

  • Constructor Details

    • NodeConfig

      public NodeConfig()
  • Method Details

    • getName

      public String getName()
      Get the name of the node.
    • setName

      public void setName(String name)
      Set the name of the node.
      Throws:
      IllegalStateException - If this instance has been locked
    • checkValid

      protected void checkValid(boolean forLock)
      Name is required.
      Overrides:
      checkValid in class AbstractLockable<NodeConfig>
      Parameters:
      forLock - If TRUE, the instance will be locked after validation
    • asJSONObject

      public org.json.simple.JSONObject asJSONObject(JSONOptions options)
      Get the configuration information as a JSON object.