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,
Resources driverResources,
Resources clientResources,
boolean stageLoggingEnabled,
boolean processTimingEnabled,
int numOfRecordsPreview,
Map<String,String> properties) |
| 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) |
Resources |
getClientResources() |
Set<Connection> |
getConnections() |
String |
getDescription() |
Resources |
getDriverResources() |
int |
getNumOfRecordsPreview() |
Map<String,String> |
getProperties() |
Resources |
getResources() |
Set<ETLStage> |
getStages() |
int |
hashCode() |
boolean |
isProcessTimingEnabled() |
boolean |
isStageLoggingEnabled() |
String |
toString() |
UpgradeableConfig |
upgrade(UpgradeContext upgradeContext)
Return an upgraded config, which may be upgradeable itself.
|
void |
validate()
Validate correctness.
|
public Set<Connection> getConnections()
public Resources getResources()
public Resources getDriverResources()
public Resources getClientResources()
public int getNumOfRecordsPreview()
public boolean isStageLoggingEnabled()
public boolean isProcessTimingEnabled()
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 © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.