Search in sources :

Example 1 with ApplicationUpdateResult

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);
}
Also used : ETLBatchConfig(io.cdap.cdap.etl.proto.v2.ETLBatchConfig) ApplicationUpdateResult(io.cdap.cdap.api.app.ApplicationUpdateResult)

Aggregations

ApplicationUpdateResult (io.cdap.cdap.api.app.ApplicationUpdateResult)1 ETLBatchConfig (io.cdap.cdap.etl.proto.v2.ETLBatchConfig)1