Package org.rhq.cassandra.schema

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


        }
        int cqlPort = storageNodes.get(0).getCqlPort();

        SchemaManager schemaManager = new SchemaManager(username, password, nodes, cqlPort);
        try {
            schemaManager.checkCompatibility();
        } catch (NoHostAvailableException e) {
            throw e;
        } catch (Exception e) {
            throw new RuntimeException(e.getMessage(), e);
        } finally {
View Full Code Here


        try {
            info.append("Checking Storage Cluster Schema Version...");
            info.append("\n\n");

            SchemaManager storageNodeSchemaManager = createStorageNodeSchemaManager(serverProperties);
            storageNodeSchemaManager.checkCompatibility();
            info.append("  ==> The Storage Cluster version is up to date. No update required.");

        } catch (NoHostAvailableException e1) {
            info.append("  ==> Could not connect to Storage Cluster.\n");
            info.append("  ==> To check Storage Cluster schema version start all nodes of the Storage Cluster and execute 'rhqctl uprade --list-versions'.");
View Full Code Here

                Properties schemaProperties = new Properties();
                schemaProperties.put(SchemaManager.RELATIONAL_DB_CONNECTION_FACTORY_PROP, connectionFactory);
                schemaProperties.put(SchemaManager.DATA_DIR, getAppServerDataDir());

                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();
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.