Package com.amazonaws.services.redshift.model

Examples of com.amazonaws.services.redshift.model.CreateClusterRequest


            int numberOfNodes) {
        if (clusterExists(client, clusterIdentifier)) {
            LOG.info("Cluster " + clusterIdentifier + " is available");
            return;
        }
        CreateClusterRequest createClusterRequest = new CreateClusterRequest();
        createClusterRequest.setClusterIdentifier(clusterIdentifier);
        createClusterRequest.setMasterUsername(masterUsername);
        createClusterRequest.setMasterUserPassword(masterUserPassword);
        createClusterRequest.setNodeType(clusterType);
        createClusterRequest.setNumberOfNodes(numberOfNodes);
        createClusterRequest.setDBName(databaseName);
        client.createCluster(createClusterRequest);
        LOG.info("Created cluster " + clusterIdentifier);
        String state = null;
        while (!(state = clusterState(client, clusterIdentifier)).equals("available")) {
            try {
View Full Code Here

TOP

Related Classes of com.amazonaws.services.redshift.model.CreateClusterRequest

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.