Examples of DbState


Examples of com.sun.hadb.dbstate.DbState

        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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.