Forum Discussion
yycelik_341802
Feb 08, 2018Nimbostratus
You should use partionName before pool and node name. Not to get that error.
static String serverIP = "";
static String user = "";
static String pass = "";
static String partionName = "";
static String poolName = "";
static String nodeName = "";
public static Interfaces interfaces = null;
public static void main(String[] args) {
try {
String[] poolNameArray = new String[1];
poolNameArray [0] = "/"+ partionName + "/"+ poolName;
CommonAddressPort[][] addressPortOutput = new CommonAddressPort[1][1];
CommonAddressPort commonAddressPort = new CommonAddressPort("/"+ partionName + "/"+ nodeName, 80);
addressPortOutput[0][0] = commonAddressPort;
Object o = getConnection().getLocalLBPool().get_member_statistics(poolNameArray, addressPortOutput);
o.equals(null);
} catch (Exception e) {
e.printStackTrace();
}
}
public static Interfaces getConnection() throws Exception {
if (interfaces == null){
interfaces = new Interfaces();
if (!interfaces.initialize(serverIP, 443, user, pass))
throw new Exception("Could not connect!");
}
return interfaces;
}