public class SchemaManager extends Object
| Constructor and Description |
|---|
SchemaManager(String username,
String password,
List<String> nodes,
int cqlPort) |
SchemaManager(String username,
String password,
String[] nodes,
int cqlPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCompatibility()
Check the existing storage cluster schema version to ensure it is compatible with the
current installation.
|
void |
drop()
Drop storage cluster schema and revert the storage cluster to pre-RHQ state.
|
protected String[] |
getStorageNodes()
Returns the list of storage nodes.
|
void |
install()
Install and update the storage cluster schema.
|
static void |
main(String[] args)
A main runner used for direct usage of the schema manager.
|
void |
updateTopology()
Update cluster topology settings, such as replication factor.
|
public SchemaManager(String username, String password, String[] nodes, int cqlPort)
username - The username RHQ will use to connect to the storage clusterpassword - The password RHQ will use to connect to the storage clusternodes - A list of seeds nodes that are assumed to be already running and
clustered prior to apply schema changes.cqlPort - The native CQL port for the storage clusterpublic SchemaManager(String username, String password, List<String> nodes, int cqlPort)
username - The username RHQ will use to connect to the storage cluster.password - The password RHQ will use to connect to the storage cluster.nodes - A list of seeds nodes that are assumed to be already running and
clustered prior to apply schema changes.cqlPort - The native CQL port for the storage clusterpublic void install()
throws Exception
Exceptionpublic void checkCompatibility()
throws Exception
Exceptionpublic void drop()
throws Exception
Exceptionpublic void updateTopology()
throws Exception
isNewSchema - Exceptionprotected String[] getStorageNodes()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.