Example #1
0
  private void loadAdminClientConfig() throws ParameterProblem, ExecutionProblem {

    super.loadConfig(PROP_RMI_BINDING_NODEMGMT_DIR);

    // only need node parameter values if doing add-nodes
    if (this.action == AdminAction.AddNodes) {
      if (!this.nodeMemoryConfigured) {
        final String memString = properties.getProperty(PROP_DEFAULT_MEMORY);
        if (memString != null) {
          this.nodeMemory = parseMemory(memString);
          this.nodeMemoryConfigured = true;
        }
      }

      if (this.nodeNetworks == null) {
        this.nodeNetworks = properties.getProperty(PROP_DEFAULT_NETWORKS);
      }

      if (this.nodePool == null) {
        // if missing or invalid, error will come later if this value is actually needed
        this.nodePool = properties.getProperty(PROP_DEFAULT_POOL);
      }
    }
  }