T
- execution context@Beta public interface SubmitterLifecycle<T>
Modifier and Type | Method and Description |
---|---|
void |
onRunFinish(boolean succeeded,
T context)
Invoked after the run finishes.
|
void |
prepareRun(T context)
Prepare the run.
|
void prepareRun(T context) throws Exception
context
- submitter contextException
- if there's an error during this method invocationvoid onRunFinish(boolean succeeded, T context)
succeeded
- defines the result of batch execution: true if run succeeded, false otherwisecontext
- submitter contextCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.