Package com.sun.enterprise.ee.admin.hadbmgmt

Examples of com.sun.enterprise.ee.admin.hadbmgmt.HADBInfo


        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);
            return rtinfo.getOtherInfo();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }
        catch(Exception e)
        {
            throw new HADBSetupException(e);
        }
        finally
        {
            if(info != null)
                info.cleanup();
        }
    }
View Full Code Here


     */
    public Object[] isHA(String clusterName)
    {
        try
        {
            HADBInfo info = new HADBInfo(null, null, null, null,
                clusterName, getLogger(), getConfigContext(), getMBeanServer());
           
            // This method (isHA) is called ALL THE TIME from the GUI for clusters that have no
            // HA set up.  This next call will prevent an Exception from getting thrown.
            info.setHostsRequired(false);
           
            info.setup();
            HADBResourceManager hrm = new HADBResourceManager(info);
            boolean isha = hrm.isHA();
            getLogger().log(Level.INFO, "HADBConfigMBean.isHA() called with cluster = " +
                clusterName + " Returned: " + isha);
            return new Object[] { isha };
View Full Code Here

        String agentPort,
        String haAdminPassword,
        String haAdminPasswordFile,
        String clusterName) throws HADBSetupException
    {
        HADBInfo info = null;
        try
        {
            String pw = (haAdminPassword == null ? "null" : "******");
            String s = "HADBConfigMBean.getNodeList() 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);
            return rtinfo.getNodeList();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }
        catch(Exception e)
        {
            throw new HADBSetupException(e);
        }
        finally
        {
            if(info != null)
                info.cleanup();
        }
    }
View Full Code Here

        String agentPort,
        String haAdminPassword,
        String haAdminPasswordFile,
        String clusterName) throws HADBSetupException
    {
        HADBInfo info = null;
        try
        {
            String pw = (haAdminPassword == null ? "null" : "******");
            String s = "HADBConfigMBean.getdatabaseStatus() 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);
            return rtinfo.getDatabaseStatus();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }
        catch(Exception e)
        {
            throw new HADBSetupException(e);
        }
        finally
        {
            if(info != null)
                info.cleanup();
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.hadbmgmt.HADBInfo

Copyright © 2018 www.massapicom. 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.