|
||||||||||
| 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 waitForSchemaAgreement)
Add a column family and wait for schema cluster agreement if waitForSchemaAgreement
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 waitForSchemaAgreement)
Add a keyspace and wait for schema cluster agreement if waitForSchemaAgreement
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 waitForSchemaAgreement)
Drops a column family and waits for schema cluster agreement if waitForSchemaAgreement
is set to true. |
String |
dropKeyspace(String keyspace)
Drops the Keyspace from the cluster. |
String |
dropKeyspace(String keyspace,
boolean waitForSchemaAgreement)
Drops a Keyspace and waits for schema cluster agreement if waitForSchemaAgreement
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 |
onStartup()
called after the cluster has been initialized. |
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 waitForSchemaAgreement)
Update a column family and wait for schema cluster agreement if waitForSchemaAgreement
is set to true. |
String |
updateKeyspace(KeyspaceDefinition ksdef)
Updates the Keyspace from the cluster without waiting for schema agreement. |
String |
updateKeyspace(KeyspaceDefinition ksdef,
boolean waitForSchemaAgreement)
Updates the Keyspace and waitz for schema cluster agreement if waitForSchemaAgreement
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 waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
is set to true. Otherwise it behaves exactly like: dropKeyspace(String)
HectorException
String updateKeyspace(KeyspaceDefinition ksdef)
throws HectorException
HectorException
String updateKeyspace(KeyspaceDefinition ksdef,
boolean waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
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 waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
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 waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
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 waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
is set to true. Otherwise it behaves exactly like: updateColumnFamily(me.prettyprint.hector.api.ddl.ColumnFamilyDefinition)
HectorException
String addKeyspace(KeyspaceDefinition ksdef)
throws HectorException
HectorException
String addKeyspace(KeyspaceDefinition ksdef,
boolean waitForSchemaAgreement)
throws HectorException
waitForSchemaAgreement
is set to true. Otherwise it behaves exactly like: addKeyspace(me.prettyprint.hector.api.ddl.KeyspaceDefinition)
HectorException
void truncate(String keyspaceName,
String columnFamily)
throws HectorException
HectorExceptionMap<String,String> getCredentials()
void onStartup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||