Interface CassandraResourceMBean
-
- All Superinterfaces:
PersistingResourceMBean
- All Known Subinterfaces:
CassandraKeyValueStoreResourceMBean
,CassandraPoolMaintenanceResourceMBean
,CassandraSessionOwnershipResourceMBean
public interface CassandraResourceMBean extends PersistingResourceMBean
A
CassandraResourceMBean
provides access to a Rhino resource that interacts with a Cassandra database.- Since:
- Rhino 3.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
CASSANDRA_VARIANT
The value assigned to thePersistingResourceMBean.RESOURCE_VARIANT_KEY
property of the MBean’s Object Name for MBeans of this type.-
Fields inherited from interface com.opencloud.rhino.resource.PersistingResourceMBean
BASE_OBJECT_NAME, MBEAN_NAME, RESOURCE_NAME_KEY, RESOURCE_TYPE_KEY, RESOURCE_VARIANT_KEY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDataDefinitions(String keyspaceName)
Get the CQL data definitions for the specified Cassandra keyspace.-
Methods inherited from interface com.opencloud.rhino.resource.PersistingResourceMBean
dumpTable, getDataDefinitions, getKeyspaces, getObjectName, getTableNames
-
-
-
-
Field Detail
-
CASSANDRA_VARIANT
static final String CASSANDRA_VARIANT
The value assigned to the
PersistingResourceMBean.RESOURCE_VARIANT_KEY
property of the MBean’s Object Name for MBeans of this type. This value is equal to the string "cassandra".- See Also:
- Constant Field Values
-
-
Method Detail
-
getDataDefinitions
String getDataDefinitions(String keyspaceName) throws NullPointerException, UnrecognizedKeyspaceException, ManagementException
Get the CQL data definitions for the specified Cassandra keyspace.
- Specified by:
getDataDefinitions
in interfacePersistingResourceMBean
- Parameters:
keyspaceName
- the keyspace name. This must be one of the names returned byPersistingResourceMBean.getKeyspaces()
.- Returns:
- a string containing the CQL statements. Individual statements within the returned string are separated by new-line characters, i.e. there is one CQL statement per line.
- Throws:
NullPointerException
- ifkeyspaceName
isnull
.UnrecognizedKeyspaceException
- ifkeyspaceName
is not the name of a keyspace known by the resource.ManagementException
- if the operation could not be successfully completed due to a system-level failure.
-
-