public abstract class Action extends Object implements PipelineConfigurable
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_TYPE |
| Constructor and Description |
|---|
Action() |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer)
Configure an ETL pipeline, adding datasets and streams that the stage needs.
|
abstract void |
run(ActionContext context)
Implement this method to execute the code as a part of action run.
|
public static final String PLUGIN_TYPE
public abstract void run(ActionContext context) throws Exception
context - the action context, containing information about the pipeline runException - when there is failure in method executionpublic void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException
PipelineConfigurableconfigurePipeline in interface PipelineConfigurablepipelineConfigurer - the configurer used to add required datasets and streamsIllegalArgumentException - if the given config is invalidCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.