Properties properties = new Properties();
properties.put("url","http://localhost:8666");
properties.put("user","myuser");
properties.put("password","coolgeek");
properties.put("command","sync");
properties.put("overwrite","true");
properties.put("clustername","cluster1");
String result = NGAPIClient.exec(properties);
|