public class Upgrader extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Upgrader.UpgradeAction
Performs an action on the upgraded hydrator config.
|
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ARTIFACT_NAMES |
static String |
BATCH_NAME |
static String |
DATA_PIPELINE_NAME |
static String |
DATA_STREAMS_NAME |
| Constructor and Description |
|---|
Upgrader(NamespaceClient namespaceClient,
ArtifactClient artifactClient,
String newVersion,
boolean includeCurrentVersion,
boolean downgrade) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldUpgrade(ArtifactSummary artifactSummary) |
boolean |
upgrade(ArtifactSummary oldArtifact,
String oldConfigStr,
Upgrader.UpgradeAction upgradeAction) |
public static final String BATCH_NAME
public static final String DATA_PIPELINE_NAME
public static final String DATA_STREAMS_NAME
public Upgrader(NamespaceClient namespaceClient, ArtifactClient artifactClient, String newVersion, boolean includeCurrentVersion, boolean downgrade)
public boolean shouldUpgrade(ArtifactSummary artifactSummary)
public boolean upgrade(ArtifactSummary oldArtifact, String oldConfigStr, Upgrader.UpgradeAction upgradeAction) throws Exception
ExceptionCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.