Tabnine Logo
Action.run
Code IndexAdd Tabnine to your IDE (free)

How to use
run
method
in
co.cask.cdap.etl.api.action.Action

Best Java code snippets using co.cask.cdap.etl.api.action.Action.run (Showing top 2 results out of 315)

origin: co.cask.hydrator/core-plugins

@Override
public void run(ActionContext context) throws Exception {
 delegate.run(context);
}
origin: co.cask.cdap/cdap-etl-batch

 @Override
 public void run() throws Exception {
  CustomActionContext context = getContext();
  Map<String, String> properties = context.getSpecification().getProperties();
  BatchPhaseSpec phaseSpec = GSON.fromJson(properties.get(Constants.PIPELINEID), BatchPhaseSpec.class);
  PipelinePhase phase = phaseSpec.getPhase();
  StageSpec stageSpec = phase.iterator().next();
  PluginContext pluginContext = new PipelinePluginContext(context, metrics,
                              phaseSpec.isStageLoggingEnabled(),
                              phaseSpec.isProcessTimingEnabled());
  PipelineRuntime pipelineRuntime = new PipelineRuntime(context, metrics);
  Action action =
   pluginContext.newPluginInstance(stageSpec.getName(),
                   new DefaultMacroEvaluator(pipelineRuntime.getArguments(),
                                context.getLogicalStartTime(),
                                context,
                                context.getNamespace()));
  ActionContext actionContext = new BasicActionContext(context, pipelineRuntime, stageSpec);
  if (!context.getDataTracer(stageSpec.getName()).isEnabled()) {
   action.run(actionContext);
  }
  WorkflowToken token = context.getWorkflowToken();
  if (token == null) {
   throw new IllegalStateException("WorkflowToken cannot be null when action is executed through Workflow.");
  }
  for (Map.Entry<String, String> entry : pipelineRuntime.getArguments().getAddedArguments().entrySet()) {
   token.put(entry.getKey(), entry.getValue());
  }
 }
}
co.cask.cdap.etl.api.actionActionrun

Javadoc

Implement this method to execute the code as a part of action run.

Popular methods of Action

  • configurePipeline

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now