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(StargateBridgeClient bridge) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortDeployment(String keyspace) |
List<SchemaSource> |
getAllVersions(String keyspace) |
CompletionStage<Optional<SchemaSource>> |
getLatestVersionAsync(String keyspace) |
Optional<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(StargateBridgeClient bridge)
public List<SchemaSource> getAllVersions(String keyspace)
public Optional<SchemaSource> getSingleVersion(String keyspace, Optional<UUID> maybeVersion)
public CompletionStage<Optional<SchemaSource>> getLatestVersionAsync(String keyspace)
public SchemaSource insert(String keyspace, String newContents)
public void startDeployment(String keyspace, UUID expectedLatestVersion, boolean force)
abortDeployment(String) or insert(String, String) have been called.IllegalStateException - if the deployment could not be started.public void abortDeployment(String keyspace)
Copyright © 2022. All rights reserved.