package org.safehaus.subutai.api.storm;

import org.safehaus.subutai.shared.protocol.Agent;
import org.safehaus.subutai.shared.protocol.ConfigBase;

import java.util.Set;

public class Config implements ConfigBase {

	public static final String PRODUCT_NAME = "Storm";

    private String clusterName;
    private Agent nimbus; // master node
    private Set<Agent> supervisors; // worker nodes

    public String getClusterName() {
        return clusterName;
    }

    public String getProductName() {
        return PRODUCT_NAME;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public Agent getNimbus() {
        return nimbus;
    }

    public void setNimbus(Agent nimbus) {
        this.nimbus = nimbus;
    }

    public Set<Agent> getSupervisors() {
        return supervisors;
    }

    public void setSupervisors(Set<Agent> supervisors) {
        this.supervisors = supervisors;
    }

}

@@ -34,16 +34,38 @@
 storm;%0A%0A
+import java.util.Set;%0A
 import o
@@ -168,31 +168,8 @@
 e;%0A%0A
-import java.util.Set;%0A%0A
 publ
@@ -213,9 +213,12 @@
  %7B%0A%0A
-%09
+    
 publ
@@ -293,24 +293,97 @@
 lusterName;%0A
+    private int supervisorsCount;%0A    private boolean externalZookeeper;%0A
     private 
@@ -464,16 +464,30 @@
  nodes%0A%0A
+    @Override%0A
     publ
@@ -542,32 +542,46 @@
 terName;%0A    %7D%0A%0A
+    @Override%0A
     public Strin
@@ -892,168 +892,573 @@
 lic 
-Set%3CAgent%3E getSupervisors() %7B%0A        return supervisors;%0A    %7D%0A%0A    public void setSupervisors(Set%3CAgent%3E supervisors) %7B%0A        this.supervisors = supervisors
+int getSupervisorsCount() %7B%0A        return supervisorsCount;%0A    %7D%0A%0A    public void setSupervisorsCount(int supervisorsCount) %7B%0A        this.supervisorsCount = supervisorsCount;%0A    %7D%0A%0A    public Set%3CAgent%3E getSupervisors() %7B%0A        return supervisors;%0A    %7D%0A%0A    public void setSupervisors(Set%3CAgent%3E supervisors) %7B%0A        this.supervisors = supervisors;%0A    %7D%0A%0A    public boolean isExternalZookeeper() %7B%0A        return externalZookeeper;%0A    %7D%0A%0A    public void setExternalZookeeper(boolean externalZookeeper) %7B%0A        this.externalZookeeper = externalZookeeper
 ;%0A  

add additional config elements