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

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


        Boolean autohadb,
        String portbase,
        String clusterName,
        Properties props) throws HADBSetupException
    {
        HADBCreateDBInfo info = null;
       
        try
        {
            String pw = (haAdminPassword == null ? "null" : "******");
            String s = "HADBConfigMBean.createHACluster() called with " +
                "hosts=" + hosts +
                ", agentPort=" + agentPort +
                ", haAdminPassword=" + pw +
                ", haAdminPasswordFile=" + haAdminPasswordFile +
                ", deviceSize=" + deviceSize +
                ", autohadb=" + autohadb +
                ", portbase=" + portbase +
                ", clusterName=" + clusterName +
                ", props=" + props;
           
            getLogger().log(Level.INFO, s);
           
            info = new HADBCreateDBInfo(
                hosts,
                agentPort,
                haAdminPassword,
                haAdminPasswordFile,
                autohadb,
                portbase,
                clusterName,
                getLogger(),
                getConfigContext(),
                getMBeanServer());
           
            info.setup();
            info.setDeviceSize(deviceSize);
            info.setProperties(props);
            HADBConfigureCluster hcc = new HADBConfigureCluster(info);
            return hcc.configure();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }
        catch(Exception e)
        {
            throw new HADBSetupException(e);
        }
        finally
        {
            if(info != null)
                info.cleanup();
        }
    }
View Full Code Here


        String storeuser,
        String storepassword,
        String dbsystempassword,
        String databaseName) throws HADBSetupException
    {
        HADBCreateDBInfo info = null;
       
        try
        {
            String a_pw = (haAdminPassword == null ? "null" : "******");
            String d_pw = (dbsystempassword == null ? "null" : "******");
            String s_pw = (storepassword == null ? "null" : "******");
            String s = "HADBConfigMBean.createHASchema() called with " +
                "hosts=" + hosts +
                ", agentPort=" + agentPort +
                ", haAdminPassword=" + a_pw +
                ", haAdminPasswordFile=" + haAdminPasswordFile +
                ", storeuser=" + storeuser +
                ", storepassword=" + s_pw +
                ", dbsystempassword=" + d_pw +
                ", databaseName=" + databaseName;
           
            getLogger().log(Level.INFO, s);
           
            info = new HADBCreateDBInfo(
                hosts,
                agentPort,
                haAdminPassword,
                haAdminPasswordFile,
                false, // auto-hadb not used
                null, // portbase not used
                databaseName,
                getLogger(),
                getConfigContext(),
                getMBeanServer());
           
            // important -- call these methods BEFORE calling setup()
            info.setDatabaseUser(storeuser);
            info.setDatabasePassword(storepassword);
            info.setSystemPassword(dbsystempassword);
           
            info.setup();
           
            HADBCreateSchema creator = new HADBCreateSchema(info);
            return creator.create();
        }
        catch(HADBSetupException hse)
        {
            throw hse;
        }
        catch(Exception e)
        {
            throw new HADBSetupException(e);
        }
        finally
        {
            if(info != null)
                info.cleanup();
        }
    }
View Full Code Here

        String storeuser,
        String storepassword,
        String dbsystempassword,
        String databaseName) throws HADBSetupException
    {
        HADBCreateDBInfo info = null;
       
        try
        {
            String a_pw = (haAdminPassword == null ? "null" : "******");
            String d_pw = (dbsystempassword == null ? "null" : "******");
            String s_pw = (storepassword == null ? "null" : "******");
            String s = "HADBConfigMBean.createHASchema() called with " +
                "hosts=" + hosts +
                ", agentPort=" + agentPort +
                ", haAdminPassword=" + a_pw +
                ", haAdminPasswordFile=" + haAdminPasswordFile +
                ", storeuser=" + storeuser +
                ", storepassword=" + s_pw +
                ", dbsystempassword=" + d_pw +
                ", databaseName=" + databaseName;
           
            getLogger().log(Level.INFO, s);
           
            info = new HADBCreateDBInfo(
                hosts,
                agentPort,
                haAdminPassword,
                haAdminPasswordFile,
                false, // auto-hadb not used
                null, // portbase not used
                databaseName,
                getLogger(),
                getConfigContext(),
                getMBeanServer());
           
            // important -- call these methods BEFORE calling setup()
            info.setDatabaseUser(storeuser);
            info.setDatabasePassword(storepassword);
            info.setSystemPassword(dbsystempassword);
           
            info.setup();
           
            HADBCreateSchema creator = new HADBCreateSchema(info);
            return creator.clear();
        }
        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.HADBCreateDBInfo

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.