Tabnine Logo
com.asakusafw.yaess.core
Code IndexAdd Tabnine to your IDE (free)

How to use com.asakusafw.yaess.core

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

origin: asakusafw/asakusafw

@Override
public synchronized void close() throws IOException {
  changeCurrentProgress(currentTaskSize);
  parent.onJobMonitorClosed(jobId);
}
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

/**
 * Performs as {@link #setUp(ExecutionMonitor, ExecutionContext)} that does nothing.
 * @param context current context
 * @since 0.4.0
 */
protected final void voidSetUp(ExecutionContext context) {
  YSLOG.info("I51001",
      context.getBatchId(),
      context.getFlowId(),
      context.getExecutionId(),
      context.getPhase(),
      getHandlerId());
}
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

/**
 * Returns the class loader which loaded this service class.
 * @return the class loader
 * @deprecated use {@link #getContext()} instead
 */
@Deprecated
public ClassLoader getClassLoader() {
  return getContext().getClassLoader();
}
origin: asakusafw/asakusafw

/**
 * Creates a new context with system variables as context parameters.
 * @param classLoader current class loader
 * @return the created context object
 * @throws IllegalArgumentException if some parameters were {@code null}
 */
public static ProfileContext system(ClassLoader classLoader) {
  return new ProfileContext(classLoader, new VariableResolver(System.getenv()));
}
origin: asakusafw/asakusafw

private static Set<String> consumeBlockerIds(NavigableMap<String, String> flowMap, String flowId) {
  String blockersString = extract(flowMap, getPrefix(flowId), KEY_BLOCKERS);
  Set<String> blockerIds = parseTokens(blockersString);
  return blockerIds;
}
origin: asakusafw/asakusafw

  @Override
  public String getResourceId(ExecutionContext context) throws InterruptedException, IOException {
    return handler.getResourceId(context, null);
  }
}
origin: asakusafw/asakusafw

@Override
public void execute(
    ExecutionMonitor monitor,
    ExecutionContext context) throws InterruptedException, IOException {
  handler.cleanUp(monitor, context);
}
origin: asakusafw/asakusafw

@Override
public void execute(
    ExecutionMonitor monitor,
    ExecutionContext context) throws InterruptedException, IOException {
  handler.execute(monitor, context, script);
}
origin: asakusafw/asakusafw

@Override
public void execute(
    ExecutionMonitor monitor,
    ExecutionContext context) throws InterruptedException, IOException {
  handler.setUp(monitor, context);
}
origin: asakusafw/asakusafw

/**
 * Returns the tracking ID of this job.
 * @param context current execution context
 * @return the tracking ID
 * @since 0.5.0
 */
public String getTrackingId(ExecutionContext context) {
  return computeTrackingId(context);
}
origin: asakusafw/asakusafw

@Override
public String getId() {
  return script.getId();
}
origin: asakusafw/asakusafw

@Override
public synchronized void progressed(double size) throws IOException {
  double nextProgress = currentProgress + size;
  changeCurrentProgress(nextProgress);
}
origin: asakusafw/asakusafw

/**
 * Returns an output stream for jobs.
 * The default implementation returns the {@link #getOutput() this.getOutput()}.
 * @param jobId target job ID
 * @return the target stream
 * @throws IOException if failed to obtain output
 */
protected OutputStream getJobOutput(String jobId) throws IOException {
  return getOutput();
}
origin: asakusafw/asakusafw

private ExecutionContext newContext(String batchId, String flowId, String executionId, ExecutionPhase phase) {
  return new ExecutionContext(
      batchId, flowId, executionId, phase,
      batchArguments, environmentVaritables, extensions);
}
origin: asakusafw/asakusafw

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

@Override
public void checkCancelled() throws InterruptedException {
  parent.checkCancelled();
}
origin: asakusafw/asakusafw

  /**
   * Performs as {@link #cleanUp(ExecutionMonitor, ExecutionContext)} that does nothing.
   * @param context current context
   * @since 0.4.0
   */
  protected final void voidCleanUp(ExecutionContext context) {
    YSLOG.info("I51002",
        context.getBatchId(),
        context.getFlowId(),
        context.getExecutionId(),
        context.getPhase(),
        getHandlerId());
  }
}
origin: asakusafw/asakusafw

  @Override
  public String getResourceId(ExecutionContext context) throws InterruptedException, IOException {
    return handler.getResourceId(context, script);
  }
}
com.asakusafw.yaess.core

Most used classes

  • VariableResolver
    Resolves variables in form of ${variable_name}.
  • YaessLogger
    Wraps logger facility.
  • ExecutionPhase
    Phases each execution replies on.
  • ProfileContext
    The profile context for YAESS.
  • ServiceProfile
    A common service profile format for configurable instances. =
  • PropertiesUtil,
  • Job,
  • BatchScript,
  • Blob,
  • ExecutionMonitor,
  • ExecutionScript,
  • ExecutionScriptHandler,
  • FlowScript,
  • HadoopScript,
  • YaessProfile,
  • ExecutionTask,
  • CommandScript,
  • CoreProfile,
  • ExecutionLock$Scope
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