use of io.cdap.cdap.api.app.ApplicationUpdateResult in project cdap by caskdata.
the class DataPipelineApp method updateConfig.
@Override
public ApplicationUpdateResult<ETLBatchConfig> updateConfig(ApplicationUpdateContext updateContext) throws Exception {
ETLBatchConfig currentBatchConfig = updateContext.getConfig(ETLBatchConfig.class);
ETLBatchConfig updatedBatchConfig = currentBatchConfig.updateBatchConfig(updateContext);
return new ApplicationUpdateResult<>(updatedBatchConfig);
}
Aggregations