|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cluster
Method Summary | |
---|---|
String |
addColumnFamily(ColumnFamilyDefinition cfdef)
Add a column family and returns without waiting for schema cluster agreement. |
String |
addColumnFamily(ColumnFamilyDefinition cfdef,
boolean blockUntilComplete)
Add a column family and wait for schema cluster agreement if blockUntilComplete
is set to true. |
void |
addHost(CassandraHost cassandraHost,
boolean skipApplyConfig)
Adds the host to this Cluster. |
String |
addKeyspace(KeyspaceDefinition ksdef)
Add a keyspace and does not wait for schema agreement. |
String |
addKeyspace(KeyspaceDefinition ksdef,
boolean blockUntilComplete)
Add a keyspace and wait for schema cluster agreement if blockUntilComplete
is set to true. |
String |
describeClusterName()
|
KeyspaceDefinition |
describeKeyspace(String keyspace)
|
List<KeyspaceDefinition> |
describeKeyspaces()
|
String |
describePartitioner()
|
List<org.apache.cassandra.thrift.TokenRange> |
describeRing(String keyspace)
|
Map<String,List<String>> |
describeSchemaVersions()
|
String |
describeThriftVersion()
|
String |
dropColumnFamily(String keyspaceName,
String columnFamily)
Drops a column family and does not wait for schema agreement. |
String |
dropColumnFamily(String keyspaceName,
String columnFamily,
boolean blockUntilComplete)
Drops a column family and wait for schema cluster agreement if blockUntilComplete
is set to true. |
String |
dropKeyspace(String keyspace)
Drops the Keyspace from the cluster. |
String |
dropKeyspace(String keyspace,
boolean blockUntilComplete)
Drops a Keyspace and wait for schema cluster agreement if blockUntilComplete
is set to true. |
String |
getClusterName()
Deprecated. use describeClusterName() |
HConnectionManager |
getConnectionManager()
|
Map<String,String> |
getCredentials()
|
Set<CassandraHost> |
getKnownPoolHosts(boolean refresh)
|
String |
getName()
Descriptive name of the cluster. |
void |
truncate(String keyspaceName,
String columnFamily)
|
String |
updateColumnFamily(ColumnFamilyDefinition cfdef)
Updates a column family and does not wait for schema agreement. |
String |
updateColumnFamily(ColumnFamilyDefinition cfdef,
boolean blockUntilComplete)
Update a column family and wait for schema cluster agreement if blockUntilComplete
is set to true. |
String |
updateKeyspace(KeyspaceDefinition ksdef)
Updates the Keyspace from the cluster without waiting for schema agreement. |
String |
updateKeyspace(KeyspaceDefinition ksdef,
boolean blockUntilComplete)
Updates the Keyspace and wait for schema cluster agreement if blockUntilComplete
is set to true. |
Method Detail |
---|
Set<CassandraHost> getKnownPoolHosts(boolean refresh)
HConnectionManager getConnectionManager()
void addHost(CassandraHost cassandraHost, boolean skipApplyConfig)
cassandraHost
- skipApplyConfig
- String getName()
String getClusterName() throws HectorException
describeClusterName()
HectorException
String describeClusterName() throws HectorException
HectorException
String describeThriftVersion() throws HectorException
HectorException
Map<String,List<String>> describeSchemaVersions() throws HectorException
HectorException
KeyspaceDefinition describeKeyspace(String keyspace) throws HectorException
HectorException
List<KeyspaceDefinition> describeKeyspaces() throws HectorException
HectorException
List<org.apache.cassandra.thrift.TokenRange> describeRing(String keyspace) throws HectorException
HectorException
String dropKeyspace(String keyspace) throws HectorException
HectorException
String dropKeyspace(String keyspace, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: dropKeyspace(String)
HectorException
String updateKeyspace(KeyspaceDefinition ksdef) throws HectorException
HectorException
String updateKeyspace(KeyspaceDefinition ksdef, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: updateKeyspace(KeyspaceDefinition)
HectorException
String describePartitioner() throws HectorException
HectorException
String addColumnFamily(ColumnFamilyDefinition cfdef) throws HectorException
HectorException
String addColumnFamily(ColumnFamilyDefinition cfdef, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: addColumnFamily(ColumnFamilyDefinition)
HectorException
String dropColumnFamily(String keyspaceName, String columnFamily) throws HectorException
HectorException
String dropColumnFamily(String keyspaceName, String columnFamily, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: dropColumnFamily(String, String)
HectorException
String updateColumnFamily(ColumnFamilyDefinition cfdef) throws HectorException
HectorException
String updateColumnFamily(ColumnFamilyDefinition cfdef, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: #updateColumnFamily(String)
HectorException
String addKeyspace(KeyspaceDefinition ksdef) throws HectorException
HectorException
String addKeyspace(KeyspaceDefinition ksdef, boolean blockUntilComplete) throws HectorException
blockUntilComplete
is set to true. Otherwise it behaves exactly like: #addKeyspace(String)
HectorException
void truncate(String keyspaceName, String columnFamily) throws HectorException
HectorException
Map<String,String> getCredentials()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |