public class UpgradeStore extends Object
| Modifier and Type | Field and Description |
|---|---|
static io.cdap.cdap.spi.data.table.StructuredTableSpecification |
UPGRADE_TABLE_SPEC |
| Constructor and Description |
|---|
UpgradeStore(io.cdap.cdap.spi.data.transaction.TransactionRunner transactionRunner) |
| Modifier and Type | Method and Description |
|---|---|
UpgradeState |
getEntityUpgradeState(NamespaceSummary namespace,
UpgradeEntityType type)
Checks whether an entity type is upgrade complete in a namespace
|
UpgradeState |
getEntityUpgradeState(UpgradeEntityType type)
Get the upgrade state
|
long |
initializeAndRetrieveUpgradeTimestampMillis(UpgradeEntityType type,
long timestampMillis,
UpgradeState preUpgradeState)
Initialize the upgrade timestamp and state for the given upgrade types if not there and
return the upgrade timestamp.
|
void |
setEntityUpgradeState(NamespaceSummary namespace,
UpgradeEntityType type,
UpgradeState upgradeState)
Set the upgrade complete status for the entity type in a namespace
|
void |
setEntityUpgradeState(UpgradeEntityType type,
UpgradeState upgradeState)
Set the upgrade complete status for the entity type
|
public static final io.cdap.cdap.spi.data.table.StructuredTableSpecification UPGRADE_TABLE_SPEC
public UpgradeStore(io.cdap.cdap.spi.data.transaction.TransactionRunner transactionRunner)
public long initializeAndRetrieveUpgradeTimestampMillis(UpgradeEntityType type, long timestampMillis, UpgradeState preUpgradeState)
type - the upgrade entity typetimestampMillis - the upgrade timestamp in millispreUpgradeState - the state before upgradepublic void setEntityUpgradeState(UpgradeEntityType type, UpgradeState upgradeState)
public void setEntityUpgradeState(NamespaceSummary namespace, UpgradeEntityType type, UpgradeState upgradeState)
namespace - namespace that completed upgrade@Nullable public UpgradeState getEntityUpgradeState(UpgradeEntityType type)
public UpgradeState getEntityUpgradeState(NamespaceSummary namespace, UpgradeEntityType type)
Copyright © 2022 CDAP Licensed under the Apache License, Version 2.0.