org.inria.myriads.snoozenode.database.api.impl.cassandra.utils
public final class CassandraUtils extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
byteFalse
byte[] false.
|
static byte[] |
byteTrue
byte[] true.
|
static String |
CLUSTER
Cluster column family.
|
static String |
GROUPMANAGERS_CF
Groupmanagers column family.
|
static String |
GROUPMANAGERS_MONITORING_CF
groupmanagers column family.
|
static String |
IPS_ROW_KEY
Ips row key in IPSPOOL_CF.
|
static String |
IPSPOOL_CF
ippools column family.
|
static String |
KEYSPACE
Keyspace column family.
|
static String |
LOCALCONTROLLERS_CF
localcontrollers column family.
|
static String |
LOCALCONTROLLERS_MAPPING_CF
localcontrollers monitoring column family.
|
protected static org.slf4j.Logger |
log_
Logger.
|
static String |
stringFalse
string false.
|
static String |
stringTrue
string true.
|
static String |
VIRTUALMACHINES_CF
virtual Machines column family.
|
static String |
VIRTUALMACHINES_MONITORING_CF
virtual Machines column family.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addStringColumn(me.prettyprint.hector.api.Keyspace keyspace,
String rowKey,
String columnFamily,
String name,
String value)
Add a column in a specific column family.
|
static boolean |
checkForRow(me.prettyprint.hector.api.Keyspace keyspace,
String columnFamily,
String rowKey)
Checks if a specific row exist.
|
static boolean |
drop(me.prettyprint.hector.api.Keyspace keyspace,
List<String> list,
String columnFamily)
Drop list of keys from a column family.
|
static boolean |
unassignNodes(me.prettyprint.hector.api.Keyspace keyspace,
List<String> keys,
String columnFamily)
Unassign a list of row.
|
static void |
unassignNodes(me.prettyprint.hector.api.Keyspace keyspace,
String columnFamily)
Unassign nodes from a column family.
|
public static final String CLUSTER
public static final String KEYSPACE
public static final String VIRTUALMACHINES_CF
public static final String VIRTUALMACHINES_MONITORING_CF
public static final String GROUPMANAGERS_CF
public static final String LOCALCONTROLLERS_CF
public static final String LOCALCONTROLLERS_MAPPING_CF
public static final String GROUPMANAGERS_MONITORING_CF
public static final String IPSPOOL_CF
public static final String IPS_ROW_KEY
public static final byte[] byteTrue
public static final byte[] byteFalse
public static final String stringTrue
public static final String stringFalse
protected static final org.slf4j.Logger log_
public static boolean addStringColumn(me.prettyprint.hector.api.Keyspace keyspace, String rowKey, String columnFamily, String name, String value)
keyspace
- Keyspace.rowKey
- RowKey.columnFamily
- ColumnFamily.name
- Name.value
- Value.public static boolean checkForRow(me.prettyprint.hector.api.Keyspace keyspace, String columnFamily, String rowKey)
keyspace
- Keyspace.columnFamily
- ColumnFamily.rowKey
- RowKey.public static boolean drop(me.prettyprint.hector.api.Keyspace keyspace, List<String> list, String columnFamily)
keyspace
- Keyspace.list
- List.columnFamily
- ColumnFamily.public static boolean unassignNodes(me.prettyprint.hector.api.Keyspace keyspace, List<String> keys, String columnFamily)
keyspace
- Keyspace.keys
- Keys.columnFamily
- ColumnFamily.public static void unassignNodes(me.prettyprint.hector.api.Keyspace keyspace, String columnFamily)
keyspace
- The keyspacecolumnFamily
- The column familyCopyright © 2013. All Rights Reserved.