|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netflix.astyanax.thrift.ThriftClusterImpl
public class ThriftClusterImpl
Constructor Summary | |
---|---|
ThriftClusterImpl(AstyanaxConfiguration config,
ConnectionPool<org.apache.cassandra.thrift.Cassandra.Client> connectionPool,
KeyspaceTracerFactory tracerFactory)
|
Method Summary | |
---|---|
String |
addColumnFamily(ColumnFamilyDefinition def)
Add a column family to an existing keyspace |
String |
addKeyspace(KeyspaceDefinition def)
Add a new keyspace to the cluster. |
String |
describeClusterName()
The cluster name is completely arbitrary |
KeyspaceDefinition |
describeKeyspace(String ksName)
Describe a single keyspace |
List<KeyspaceDefinition> |
describeKeyspaces()
Return details about all keyspaces in the cluster |
String |
describePartitioner()
Describe the partitioner used by the cluster |
Map<String,List<String>> |
describeSchemaVersions()
|
String |
describeSnitch()
Describe the snitch name used on the cluster |
String |
dropColumnFamily(String keyspaceName,
String columnFamilyName)
Delete the column family from the keyspace |
String |
dropKeyspace(String keyspaceName)
Delete a keyspace from the cluster |
AstyanaxConfiguration |
getConfig()
Configuration object for this Cluster |
Keyspace |
getKeyspace(String ksName)
Return a keyspace client. |
String |
getVersion()
Get the version from the cluster |
ColumnDefinition |
makeColumnDefinition()
Make a column definitio to be added to a ColumnFamilyDefinition |
ColumnFamilyDefinition |
makeColumnFamilyDefinition()
Prepare a column family definition. |
KeyspaceDefinition |
makeKeyspaceDefinition()
Prepare a keyspace definition. |
String |
updateColumnFamily(ColumnFamilyDefinition def)
Update an existing column family |
String |
updateKeyspace(KeyspaceDefinition def)
Update a new keyspace in the cluster. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThriftClusterImpl(AstyanaxConfiguration config, ConnectionPool<org.apache.cassandra.thrift.Cassandra.Client> connectionPool, KeyspaceTracerFactory tracerFactory)
Method Detail |
---|
public String describeClusterName() throws ConnectionException
Cluster
describeClusterName
in interface Cluster
ConnectionException
public String describeSnitch() throws ConnectionException
Cluster
describeSnitch
in interface Cluster
ConnectionException
public String describePartitioner() throws ConnectionException
Cluster
describePartitioner
in interface Cluster
ConnectionException
public Map<String,List<String>> describeSchemaVersions() throws ConnectionException
describeSchemaVersions
in interface Cluster
ConnectionException
public String getVersion() throws ConnectionException
getVersion
in interface Cluster
OperationException
ConnectionException
public String dropColumnFamily(String keyspaceName, String columnFamilyName) throws OperationException, ConnectionException
Cluster
dropColumnFamily
in interface Cluster
OperationException
ConnectionException
public String dropKeyspace(String keyspaceName) throws OperationException, ConnectionException
Cluster
dropKeyspace
in interface Cluster
OperationException
ConnectionException
public List<KeyspaceDefinition> describeKeyspaces() throws ConnectionException
Cluster
describeKeyspaces
in interface Cluster
ConnectionException
public KeyspaceDefinition describeKeyspace(String ksName) throws ConnectionException
Cluster
describeKeyspace
in interface Cluster
ConnectionException
public Keyspace getKeyspace(String ksName)
Cluster
getKeyspace
in interface Cluster
public ColumnFamilyDefinition makeColumnFamilyDefinition()
Cluster
makeColumnFamilyDefinition
in interface Cluster
public String addColumnFamily(ColumnFamilyDefinition def) throws ConnectionException
Cluster
addColumnFamily
in interface Cluster
def
- - Created by calling prepareColumnFamilyDefinition();
ConnectionException
public String updateColumnFamily(ColumnFamilyDefinition def) throws ConnectionException
Cluster
updateColumnFamily
in interface Cluster
def
- - Created by calling prepareColumnFamilyDefinition();
ConnectionException
public KeyspaceDefinition makeKeyspaceDefinition()
Cluster
makeKeyspaceDefinition
in interface Cluster
public String addKeyspace(KeyspaceDefinition def) throws ConnectionException
Cluster
addKeyspace
in interface Cluster
ConnectionException
public String updateKeyspace(KeyspaceDefinition def) throws ConnectionException
Cluster
updateKeyspace
in interface Cluster
ConnectionException
public ColumnDefinition makeColumnDefinition()
Cluster
makeColumnDefinition
in interface Cluster
public AstyanaxConfiguration getConfig()
Cluster
getConfig
in interface Cluster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |