Examples of waitForClusterToStart()


Examples of org.rhq.cassandra.ClusterInitService.waitForClusterToStart()

                            cqlPort = ccm.getCqlPort();

                            ccm.startCluster(false);

                            try {
                                clusterInitService.waitForClusterToStart(nodes, jmxPorts, nodes.length, 2000, 20, 10);
                                schemaManager = new SchemaManager("rhqadmin", "1eeb2f255e832171df8592078de921bc", nodes,
                                    cqlPort);
                            } catch (Exception e) {
                                if (null != ccm) {
                                    ccm.shutdownCluster();
View Full Code Here

Examples of org.rhq.cassandra.ClusterInitService.waitForClusterToStart()

        String[] addresses = new String[] {"127.0.0.1"};
        int[] jmxPorts = new int[] {7399};

        ClusterInitService clusterInitService = new ClusterInitService();
        clusterInitService.waitForClusterToStart(addresses, jmxPorts);

        SchemaManager schemaManager = new SchemaManager("rhqadmin", "1eeb2f255e832171df8592078de921bc",
            addresses, 9142);
        try {
            schemaManager.install();
View Full Code Here

Examples of org.rhq.cassandra.ClusterInitService.waitForClusterToStart()

            deploymentOptions.setHeapNewSize("64M");
            deploymentOptions.load();

            doDeployment(deploymentOptions);
            ClusterInitService clusterInitService = new ClusterInitService();
            clusterInitService.waitForClusterToStart(new String [] {"127.0.0.2"}, new int[] {7400});

            InventoryManager inventoryManager = PluginContainer.getInstance().getInventoryManager();
            InventoryReport inventoryReport = inventoryManager.executeServerScanImmediately();
            Resource newStorageNode = null;
View Full Code Here

Examples of org.rhq.cassandra.ClusterInitService.waitForClusterToStart()

        ccm.createCluster();
        ccm.startCluster(false);

        ClusterInitService clusterInitService = new ClusterInitService();
        clusterInitService.waitForClusterToStart(new String[] {"127.0.0.1"}, new int[] {8399}, 1, 2000, 20, 10);
    }

    @AfterSuite(alwaysRun = true)
    public void shutdownStorageCluster() {
        if (Boolean.valueOf(System.getProperty("rhq.storage.shutdown", "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.