Package org.rhq.cassandra.schema

Examples of org.rhq.cassandra.schema.SchemaManager.install()


        getLog().info("Installing RHQ schema");
        SchemaManager schemaManager = new SchemaManager(deploymentOptions.getUsername(),
            deploymentOptions.getPassword(), ccm.getNodes(), ccm.getCqlPort());

        try {
            schemaManager.install();
            schemaManager.updateTopology();
        } catch (Exception e) {
            throw new MojoExecutionException("Schema installation failed.", e);
        }
View Full Code Here


                try {
                    storageNodeSchemaManager.checkCompatibility();

                } catch (AuthenticationException e1) {
                    log("Storage user does not exist. Installing Storage Cluster schema along with updates to storage nodes.");
                    storageNodeSchemaManager.install(schemaProperties);
                    storageNodeSchemaManager.updateTopology();
                } catch (SchemaNotInstalledException e2) {
                    log("Storage cluster Schema does not exist. Installing Storage Cluster schema along with updates to storage nodes.");
                    storageNodeSchemaManager.install(schemaProperties);
                    storageNodeSchemaManager.updateTopology();
View Full Code Here

                    log("Storage user does not exist. Installing Storage Cluster schema along with updates to storage nodes.");
                    storageNodeSchemaManager.install(schemaProperties);
                    storageNodeSchemaManager.updateTopology();
                } catch (SchemaNotInstalledException e2) {
                    log("Storage cluster Schema does not exist. Installing Storage Cluster schema along with updates to storage nodes.");
                    storageNodeSchemaManager.install(schemaProperties);
                    storageNodeSchemaManager.updateTopology();
                } catch (InstalledSchemaTooOldException e3) {
                    log("Storage cluster Schema out of date. Applying Storage Cluster schema updates.");
                    storageNodeSchemaManager.install(schemaProperties);
                }
View Full Code Here

                    log("Storage cluster Schema does not exist. Installing Storage Cluster schema along with updates to storage nodes.");
                    storageNodeSchemaManager.install(schemaProperties);
                    storageNodeSchemaManager.updateTopology();
                } catch (InstalledSchemaTooOldException e3) {
                    log("Storage cluster Schema out of date. Applying Storage Cluster schema updates.");
                    storageNodeSchemaManager.install(schemaProperties);
                }
                storageNodeAddresses = storageNodeSchemaManager.getStorageNodeAddresses();
                storageNodeSchemaManager.shutdown();
            } else {
                log("Ignoring storage cluster schema - installer will assume it exists and is already up-to-date.");
View Full Code Here

    private void createSchema(String[] nodes, int cqlPort) {
        SchemaManager schemaManager = new SchemaManager("rhqadmin", "1eeb2f255e832171df8592078de921bc", nodes,
            cqlPort);
        try {
            log.info("Creating schema");
            schemaManager.install();
        } catch (Exception e) {
            throw new RuntimeException("Failed to start simulator. An error occurred during schema creation.", e);
        } finally {
            schemaManager.shutdown();
        }
View Full Code Here

        clusterInitService.waitForClusterToStart(nodes, jmxPorts, nodes.length, 2000, 20, 10);

        SchemaManager schemaManager = new SchemaManager(annotation.username(), annotation.password(), nodes,
            ccm.getCqlPort());
        try {
            schemaManager.install();
            if (annotation.waitForSchemaAgreement()) {
                clusterInitService.waitForSchemaAgreement(nodes, jmxPorts);
            }
            schemaManager.updateTopology();
        } finally {
View Full Code Here

                            } catch (Exception e) {
                                throw new RuntimeException("External Cassandra initialization failed", e);
                            }
                        }
                        try {
                            schemaManager.install();
                            clusterInitService.waitForSchemaAgreement(nodes, jmxPorts);
                            schemaManager.updateTopology();
                        } catch (Exception e) {
                            if (null != ccm) {
                                ccm.shutdownCluster();
View Full Code Here

        clusterInitService.waitForClusterToStart(addresses, jmxPorts);

        SchemaManager schemaManager = new SchemaManager("rhqadmin", "1eeb2f255e832171df8592078de921bc",
            addresses, 9142);
        try {
            schemaManager.install();
            schemaManager.updateTopology();
        } finally {
            schemaManager.shutdown();
        }
    }
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.