T - batch execution context@Beta public abstract class BatchConfigurable<T extends BatchContext> extends Object implements PipelineConfigurable
| Constructor and Description |
|---|
BatchConfigurable() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer)
Configure an ETL pipeline, adding datasets and streams that the stage needs.
|
void |
onRunFinish(boolean succeeded,
T context)
Invoked after the Batch run finishes.
|
abstract void |
prepareRun(T context)
Prepare the Batch run.
|
public void configurePipeline(PipelineConfigurer pipelineConfigurer)
PipelineConfigurableconfigurePipeline in interface PipelineConfigurablepipelineConfigurer - the configurer used to add required datasets and streamspublic abstract void prepareRun(T context) throws Exception
context - batch execution contextException - if there's an error during this method invocationpublic void onRunFinish(boolean succeeded,
T context)
succeeded - defines the result of batch execution: true if run succeeded, false otherwisecontext - batch execution contextCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.