org.scale7.cassandra.pelops
Class KeyspaceManager

java.lang.Object
  extended by org.scale7.cassandra.pelops.ManagerOperand
      extended by org.scale7.cassandra.pelops.KeyspaceManager

public class KeyspaceManager
extends ManagerOperand

Management operations need to be applied to a single node. See http://wiki.apache.org/cassandra/LiveSchemaUpdates for more details.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.scale7.cassandra.pelops.ManagerOperand
ManagerOperand.IManagerOperation<ReturnType>
 
Field Summary
static String KSDEF_STRATEGY_LOCAL
           
static String KSDEF_STRATEGY_NETWORK_TOPOLOGY
           
static String KSDEF_STRATEGY_NETWORK_TOPOLOGY_OLD
           
static String KSDEF_STRATEGY_SIMPLE
           
 
Constructor Summary
KeyspaceManager(Cluster cluster)
           
 
Method Summary
 String addKeyspace(org.apache.cassandra.thrift.KsDef keyspaceDefinition)
           
 String dropKeyspace(String keyspace)
           
 List<org.apache.cassandra.thrift.KsDef> getKeyspaceNames()
           
 List<org.apache.cassandra.thrift.TokenRange> getKeyspaceRingMappings(String keyspace)
           
 org.apache.cassandra.thrift.KsDef getKeyspaceSchema(String keyspace)
           
 
Methods inherited from class org.scale7.cassandra.pelops.ManagerOperand
openClient, tryOperation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KSDEF_STRATEGY_SIMPLE

public static final String KSDEF_STRATEGY_SIMPLE
See Also:
Constant Field Values

KSDEF_STRATEGY_LOCAL

public static final String KSDEF_STRATEGY_LOCAL
See Also:
Constant Field Values

KSDEF_STRATEGY_NETWORK_TOPOLOGY

public static final String KSDEF_STRATEGY_NETWORK_TOPOLOGY
See Also:
Constant Field Values

KSDEF_STRATEGY_NETWORK_TOPOLOGY_OLD

public static final String KSDEF_STRATEGY_NETWORK_TOPOLOGY_OLD
See Also:
Constant Field Values
Constructor Detail

KeyspaceManager

public KeyspaceManager(Cluster cluster)
Method Detail

getKeyspaceNames

public List<org.apache.cassandra.thrift.KsDef> getKeyspaceNames()
                                                         throws Exception
Throws:
Exception

getKeyspaceRingMappings

public List<org.apache.cassandra.thrift.TokenRange> getKeyspaceRingMappings(String keyspace)
                                                                     throws Exception
Throws:
Exception

getKeyspaceSchema

public org.apache.cassandra.thrift.KsDef getKeyspaceSchema(String keyspace)
                                                    throws Exception
Throws:
Exception

addKeyspace

public String addKeyspace(org.apache.cassandra.thrift.KsDef keyspaceDefinition)
                   throws Exception
Throws:
Exception

dropKeyspace

public String dropKeyspace(String keyspace)
                    throws Exception
Throws:
Exception


Copyright © 2011. All Rights Reserved.