Tabnine Logo
ExecutionPhase.getSymbol
Code IndexAdd Tabnine to your IDE (free)

How to use
getSymbol
method
in
com.asakusafw.yaess.core.ExecutionPhase

Best Java code snippets using com.asakusafw.yaess.core.ExecutionPhase.getSymbol (Showing top 11 results out of 315)

origin: asakusafw/asakusafw

@Override
public String toString() {
  return getSymbol();
}
origin: asakusafw/asakusafw

  @Override
  public JsonElement serialize(ExecutionPhase src, Type type, JsonSerializationContext context) {
    return new JsonPrimitive(src.getSymbol());
  }
}
origin: asakusafw/asakusafw

private static String getPrefix(String flowId, ExecutionPhase phase) {
  assert flowId != null;
  assert phase != null;
  return getPrefix(flowId) + phase.getSymbol() + '.';
}
origin: asakusafw/asakusafw

  @Override
  String getKey(ExecutionContext context, ExecutionScript script) {
    return MessageFormat.format(
        "{0}.{1}.{2}",
        context.getFlowId(),
        context.getPhase().getSymbol(),
        WILDCARD);
  }
},
origin: asakusafw/asakusafw

@Override
public void cleanUp(
    ExecutionMonitor monitor,
    ExecutionContext context) throws InterruptedException, IOException {
  HadoopScript script = new HadoopScript(
      context.getPhase().getSymbol(),
      Collections.emptySet(),
      CLEANUP_STAGE_CLASS,
      Collections.emptyMap(),
      Collections.emptyMap());
  run(monitor, context, script);
}
origin: asakusafw/asakusafw

private static JsonObject analyzeJobflow(FlowScript flowScript) {
  assert flowScript != null;
  JsonArray phases = new JsonArray();
  for (Map.Entry<ExecutionPhase, Set<ExecutionScript>> entry : flowScript.getScripts().entrySet()) {
    ExecutionPhase phase = entry.getKey();
    if (entry.getValue().isEmpty() == false
        || phase == ExecutionPhase.SETUP
        || phase == ExecutionPhase.CLEANUP) {
      phases.add(new JsonPrimitive(phase.getSymbol()));
    }
  }
  JsonObject jobflow = new JsonObject();
  jobflow.addProperty("id", flowScript.getId());
  jobflow.add("blockers", toJsonArray(flowScript.getBlockerIds()));
  jobflow.add("phases", phases);
  return jobflow;
}
origin: asakusafw/asakusafw

  @Override
  String getKey(ExecutionContext context, ExecutionScript script) {
    if (script == null) {
      return null;
    }
    return MessageFormat.format(
        "{0}.{1}.{2}",
        context.getFlowId(),
        context.getPhase().getSymbol(),
        script.getId());
  }
},
origin: asakusafw/asakusafw

context.getBatchId(),
context.getFlowId(),
context.getPhase().getSymbol(),
exec.getModuleName(),
exec.getId(),
origin: asakusafw/asakusafw

    context.getBatchId(),
    context.getFlowId(),
    context.getPhase().getSymbol(),
    script == null ? LABEL_UNDEFINED : script.getId(),
});
origin: asakusafw/asakusafw

System.out.println("Phase name is one of:");
for (ExecutionPhase phase : ExecutionPhase.values()) {
  System.out.printf("    %s%n", phase.getSymbol());
origin: asakusafw/asakusafw

@Override
public void cleanUp(
    ExecutionMonitor monitor,
    ExecutionContext context) throws InterruptedException, IOException {
  monitor.open(1);
  try {
    if (cleanup) {
      YSLOG.info("I51001",
          context.getBatchId(),
          context.getFlowId(),
          context.getExecutionId(),
          getHandlerId());
      HadoopScript script = new HadoopScript(
          context.getPhase().getSymbol(),
          Collections.emptySet(),
          CLEANUP_STAGE_CLASS,
          Collections.emptyMap(),
          Collections.emptyMap());
      execute0(monitor, context, script);
    } else {
      YSLOG.info("I51002",
          context.getBatchId(),
          context.getFlowId(),
          context.getExecutionId(),
          getHandlerId());
    }
  } finally {
    monitor.close();
  }
}
com.asakusafw.yaess.coreExecutionPhasegetSymbol

Javadoc

Returns the symbol of this phase. This symbol is used in ExecutionScripts.

Popular methods of ExecutionPhase

  • findFromSymbol
    Returns an ExecutionPhase corresponded to the symbol.
  • values
  • name

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Top plugins for WebStorm
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