public class SchemaSourceDao extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYSPACE_NAME |
static String |
KEYSPACE_REPLICATION_PROPERTY |
static String |
TABLE_NAME |
| Constructor and Description |
|---|
SchemaSourceDao(DataStore dataStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortDeployment(String keyspace) |
List<SchemaSource> |
getAllVersions(String keyspace) |
SchemaSource |
getLatestVersion(String keyspace) |
SchemaSource |
getSingleVersion(String keyspace,
Optional<UUID> maybeVersion) |
SchemaSource |
insert(String keyspace,
String newContents) |
void |
purgeOldVersions(String keyspace) |
void |
startDeployment(String keyspace,
UUID expectedLatestVersion,
boolean force)
"Locks" the table to start a new deployment.
|
void |
undeploy(String keyspace,
UUID expectedLatestVersion,
boolean force) |
public static final String KEYSPACE_NAME
public static final String TABLE_NAME
public static final String KEYSPACE_REPLICATION_PROPERTY
public SchemaSourceDao(DataStore dataStore)
public List<SchemaSource> getAllVersions(String keyspace) throws Exception
Exceptionpublic SchemaSource getSingleVersion(String keyspace, Optional<UUID> maybeVersion) throws Exception
Exceptionpublic SchemaSource getLatestVersion(String keyspace) throws Exception
Exceptionpublic SchemaSource insert(String keyspace, String newContents)
public void startDeployment(String keyspace, UUID expectedLatestVersion, boolean force) throws Exception
abortDeployment(String) or insert(String, String) have been called.IllegalStateException - if the deployment could not be started.Exceptionpublic void abortDeployment(String keyspace) throws ExecutionException, InterruptedException
public void undeploy(String keyspace, UUID expectedLatestVersion, boolean force) throws ExecutionException, InterruptedException
Copyright © 2023. All rights reserved.