if(connURL == null || hadbDBName == null || hadbAgentPassword == null) {
return true;
}
try {
DbState dbstate =
new DbState (connURL, hadbDBName, hadbAgentPassword);
int state = dbstate.getState();
if(_logger.isLoggable(Level.FINEST)) {
_logger.finest("dbstate reports state = " + state);
}
//FIXME: this is wrong to base on this return code
if(state==DbState.STATE_MA_NOT_REACHABLE) {
_logger.log(Level.WARNING,
"hadbhealthchecker.generalConfigurationError");
runtimeHealthCheckExceptionReported = true;
return true;
}
result = dbstate.isAvailable();
} catch (Exception ex) {
if(!runtimeHealthCheckExceptionReported) {
_logger.log(Level.WARNING,
"hadbhealthchecker.generalConfigurationError");
runtimeHealthCheckExceptionReported = true;