String agentPort,
String haAdminPassword,
String haAdminPasswordFile,
String clusterName) throws HADBSetupException
{
HADBInfo info = null;
try
{
String pw = (haAdminPassword == null ? "null" : "******");
String s = "HADBConfigMBean.pingHadbAgent() called with " +
"hosts=" + hosts +
", agentPort=" + agentPort +
", haAdminPassword=" + pw +
", haAdminPasswordFile=" + haAdminPasswordFile +
", clusterName=" + clusterName;
getLogger().log(Level.INFO, s);
info = new HADBInfo(hosts, agentPort, haAdminPassword, haAdminPasswordFile,
clusterName, getLogger(), getConfigContext(), getMBeanServer());
info.setup();
HADBRuntimeInfo rtinfo = new HADBRuntimeInfo(info);
readWriteAttributes = rtinfo.getReadWriteAttributes();
readOnlyAttributes = rtinfo.getReadOnlyAttributes();
return rtinfo.getAttributes();
}
catch(HADBSetupException hse)
{
throw hse;
}
catch(Exception e)
{
throw new HADBSetupException(e);
}
finally
{
if(info != null)
info.cleanup();
}
}