Package com.netflix.paas.cassandra.events

Examples of com.netflix.paas.cassandra.events.KeyspaceUpdateEvent


        props.setProperty("name", keyspace.getName());
        keyspace.setClusterName(clusterKey.getClusterName());

        try {
            cluster.createKeyspace(props);
            eventBus.post(new KeyspaceUpdateEvent(new KeyspaceKey(clusterKey, keyspace.getName())));
        } catch (ConnectionException e) {
            throw new PaasException(String.format("Error creating keyspace '%s' from cluster '%s'", keyspace.getName(), clusterKey.getClusterName()), e);
        }
    }
View Full Code Here


            props.putAll(keyspace.getOptions());
            props.setProperty("name", keyspace.getName());
            keyspace.setClusterName(clusterKey.getClusterName());
           
            cluster.updateKeyspace(props);
            eventBus.post(new KeyspaceUpdateEvent(new KeyspaceKey(clusterKey, keyspace.getName())));
        } catch (ConnectionException e) {
            throw new PaasException(String.format("Error creating keyspace '%s' from cluster '%s'", keyspace.getName(), clusterKey.getClusterName()), e);
        }
    }
View Full Code Here

TOP

Related Classes of com.netflix.paas.cassandra.events.KeyspaceUpdateEvent

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.