Add Cluster
SUMMARY
Configuring Load Balancing in a Cluster can be done by combining several commands.
First is to Add the Cluster by setting the general configuration information.
SCRIPT
/usr/ngasi/apiclient/bin/ncli.sh -user=admin -password=coolgeek -url=http://localhost:8666 -command=createcluster -clustername=cluster1 -appservername=Tomcat -appserverversion=6.0.18
JAVA API
Properties properties = new Properties();
properties.put("url","http://localhost:8666");
properties.put("user","admin");
properties.put("password","coolgeek");
properties.put("command","createcluster");
properties.put("clustername","cluster");
properties.put("appservername","Tomcat");
properties.put("appserverversion","6.0.18");
String result = NGAPIClient.exec(properties);