T
- batch execution context@Beta public abstract class MultiInputBatchConfigurable<T extends BatchContext> extends Object implements MultiInputPipelineConfigurable, SubmitterLifecycle<T>
Constructor and Description |
---|
MultiInputBatchConfigurable() |
Modifier and Type | Method and Description |
---|---|
void |
configurePipeline(MultiInputPipelineConfigurer multiInputPipelineConfigurer)
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(MultiInputPipelineConfigurer multiInputPipelineConfigurer)
MultiInputPipelineConfigurable
configurePipeline
in interface MultiInputPipelineConfigurable
multiInputPipelineConfigurer
- the configurer used to add required datasets and streamspublic abstract void prepareRun(T context) throws Exception
prepareRun
in interface SubmitterLifecycle<T extends BatchContext>
context
- batch execution contextException
- if there's an error during this method invocationpublic void onRunFinish(boolean succeeded, T context)
onRunFinish
in interface SubmitterLifecycle<T extends BatchContext>
succeeded
- defines the result of batch execution: true if run succeeded, false otherwisecontext
- batch execution contextCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.