Package com.netflix.paas.exceptions

Examples of com.netflix.paas.exceptions.AlreadyExistsException


     */
    public synchronized void registerKeyspace(String keyspaceName) throws AlreadyExistsException {
        Preconditions.checkNotNull(keyspaceName);
       
        if (keyspaces.containsKey(keyspaceName)) {
            throw new AlreadyExistsException("keyspace", keyspaceName);
        }
       
        CassandraKeyspaceHolder keyspace = new CassandraKeyspaceHolder(new AstyanaxContext.Builder()
                .forCluster(clusterName)
                .forKeyspace(keyspaceName)
View Full Code Here


public class LocalClusterDiscoveryService implements ClusterDiscoveryService {
    private ConcurrentMap<String, ClusterEntity> clusters = Maps.newConcurrentMap();
   
    public void addCluster(ClusterEntity cluster) throws AlreadyExistsException {
        if (null != clusters.putIfAbsent(cluster.getName(), cluster)) {
            throw new AlreadyExistsException("cluster", cluster.getName());
        }
    }
View Full Code Here

     * @param columnFamily
     * @throws AlreadyExistsException
     */
    public synchronized void registerColumnFamily(String columnFamily) throws AlreadyExistsException {
        if (columnFamilies.containsKey(columnFamily))
            throw new AlreadyExistsException("columnfamily", columnFamily);
       
        columnFamilies.put(columnFamily, new AstyanaxThriftDataTableResource(context.getClient(), columnFamily));
    }
View Full Code Here

TOP

Related Classes of com.netflix.paas.exceptions.AlreadyExistsException

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.