public class ETLConfig extends Config implements UpgradeableConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
ETLConfig.Builder<T extends ETLConfig.Builder>
Builder for creating configs.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ETLConfig(Set<ETLStage> stages,
Set<Connection> connections,
Resources resources,
boolean stageLoggingEnabled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpgrade() |
protected <T extends ETLConfig.Builder> |
convertStages(T builder,
String sourceType,
String sinkType)
Converts the source, transforms, sinks, connections and resources from old style config into their
new forms.
|
boolean |
equals(Object o) |
Set<Connection> |
getConnections() |
Resources |
getResources() |
Set<ETLStage> |
getStages() |
int |
hashCode() |
boolean |
isStageLoggingEnabled() |
String |
toString() |
UpgradeableConfig |
upgrade(UpgradeContext upgradeContext)
Return an upgraded config, which may be upgradeable itself.
|
void |
validate()
Validate correctness.
|
protected ETLConfig(Set<ETLStage> stages, Set<Connection> connections, Resources resources, boolean stageLoggingEnabled)
public Set<Connection> getConnections()
public Resources getResources()
public boolean isStageLoggingEnabled()
public void validate()
IllegalArgumentException - if the object is invalidprotected <T extends ETLConfig.Builder> T convertStages(T builder, String sourceType, String sinkType)
public boolean canUpgrade()
canUpgrade in interface UpgradeableConfigpublic UpgradeableConfig upgrade(UpgradeContext upgradeContext)
UpgradeableConfigupgrade in interface UpgradeableConfigupgradeContext - context for upgradingCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.