gpt4 book ai didi

com.asakusafw.yaess.core.YaessLogger.error()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 08:24:49 26 4
gpt4 key购买 nike

本文整理了Java中com.asakusafw.yaess.core.YaessLogger.error()方法的一些代码示例,展示了YaessLogger.error()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YaessLogger.error()方法的具体详情如下:
包路径:com.asakusafw.yaess.core.YaessLogger
类名称:YaessLogger
方法名:error

YaessLogger.error介绍

[英]Log a message at ERROR level.
[中]在错误级别记录消息。

代码示例

代码示例来源:origin: asakusafw/asakusafw

@Override
public synchronized void beginFlow(String flowId, String executionId) throws IOException {
  if (flowId == null) {
    throw new IllegalArgumentException("flowId must not be null"); //$NON-NLS-1$
  }
  if (executionId == null) {
    throw new IllegalArgumentException("executionId must not be null"); //$NON-NLS-1$
  }
  if (closed) {
    throw new IOException("Lock manager is already closed");
  }
  LockObject other = flowLocks.get(flowId);
  if (other != null) {
    YSLOG.error("E41002", batchId, flowId, executionId, lockScope);
    throw new IOException(MessageFormat.format(
        "Failed to lock target flow (re-entrant): {0} ({1})",
        flowId,
        other.label));
  }
  try {
    LockObject lock = acquireForFlow(flowId, executionId);
    if (lock != null) {
      flowLocks.put(flowId, lock);
    }
  } catch (IOException e) {
    YSLOG.error("E41002", batchId, flowId, executionId, lockScope);
    throw e;
  }
}

代码示例来源:origin: asakusafw/asakusafw

/**
 * Creates a new instance.
 * @param lockScope lock scope
 * @param batchId target batch ID
 * @param directory base directory for lock files, must exist
 * @throws IOException if failed to create instance
 * @throws IllegalArgumentException if some parameters were {@code null}
 */
FileExecutionLock(Scope lockScope, String batchId, File directory) throws IOException {
  if (lockScope == null) {
    throw new IllegalArgumentException("lockScope must not be null"); //$NON-NLS-1$
  }
  if (batchId == null) {
    throw new IllegalArgumentException("batchId must not be null"); //$NON-NLS-1$
  }
  if (directory == null) {
    throw new IllegalArgumentException("directory must not be null"); //$NON-NLS-1$
  }
  this.lockScope = lockScope;
  this.batchId = batchId;
  this.directory = directory;
  this.flowLocks = new HashMap<>();
  try {
    this.batchLock = acquireForBatch();
  } catch (IOException e) {
    YSLOG.error("E41001", batchId, lockScope);
    throw e;
  }
}

代码示例来源:origin: asakusafw/asakusafw

private Properties loadBatchConf(ExecutionContext context, ExecutionScript script) throws IOException {
  assert context != null;
  String fileName = context.getBatchId() + SUFFIX_CONF;
  File file = new File(confDirectory, fileName);
  LOG.debug("Finding multidispatch configuration file: batchId={}, file={}", context.getBatchId(), file);
  if (file.isFile() == false) {
    LOG.debug("Missing multidispatch configuration file: batchId={}, file={}", context.getBatchId(), file);
    return null;
  }
  LOG.debug("Loading multidispatch configuration file: batchId={}, file={}", context.getBatchId(), file);
  try (InputStream in = new FileInputStream(file)) {
    Properties properties = new Properties();
    properties.load(in);
    return properties;
  } catch (IOException e) {
    YSLOG.error(e, "E01001",
        context.getBatchId(),
        file.getAbsolutePath());
    throw e;
  }
}

代码示例来源:origin: asakusafw/asakusafw

YSLOG.error(e, "E99001", name, value);
  for (Extension ext : results) {
    try {
YSLOG.error("E99001", name, value);
throw new IllegalArgumentException(MessageFormat.format(
    "there is no available extension handler \"{0}\"",

代码示例来源:origin: asakusafw/asakusafw

YSLOG.error(e, "E00001", user, host, port, privateKey);
throw e;

代码示例来源:origin: asakusafw/asakusafw

resolved.put(key, value);
} catch (IllegalArgumentException e) {
  YSLOG.error(e, "E10001",
      profile.getPrefix(),
      ExecutionScriptHandler.KEY_PROP_PREFIX,

代码示例来源:origin: asakusafw/asakusafw

resolved.put(key, value);
} catch (IllegalArgumentException e) {
  YSLOG.error(e, "E10001",
      profile.getPrefix(),
      ExecutionScriptHandler.KEY_ENV_PREFIX,

代码示例来源:origin: asakusafw/asakusafw

result.profile = YaessProfile.load(properties, result.context);
} catch (Exception e) {
  YSLOG.error(e, "E01001", file.getPath());
  throw new IllegalArgumentException(MessageFormat.format(
      "Invalid profile \"{0}\".",
  result.script = properties;
} catch (Exception e) {
  YSLOG.error(e, "E01002", script);
  throw new IllegalArgumentException(MessageFormat.format(
      "Invalid script \"{0}\".",

代码示例来源:origin: asakusafw/asakusafw

System.out.printf("    %s%n", phase.getSymbol());
  YSLOG.error(e, "E00001", Arrays.toString(args));
  return 1;
        conf.arguments, conf.definitions, blobs);
  } catch (Exception e) {
    YSLOG.error(e, "E00002", conf);
    return 1;
  YSLOG.error("E00003", conf);
  return 1;
} catch (Exception e) {
  YSLOG.error(e, "E00003", conf);
  return 1;
} finally {

代码示例来源:origin: asakusafw/asakusafw

YSLOG.error("E01001", batchId);
  throw e;
} catch (IOException e) {
  YSLOG.error(e, "E01001", batchId);
  throw e;
} catch (InterruptedException e) {

代码示例来源:origin: asakusafw/asakusafw

private JobStatus poll(ExecutionContext context, JobInfo info) throws IOException, InterruptedException {
  assert context != null;
  assert info != null;
  try {
    return info.client.getStatus(info.id);
  } catch (IOException e) {
    YSLOG.error(e, "E01003",
        info.script.getBatchId(),
        info.script.getFlowId(),
        info.script.getPhase(),
        info.script.getExecutionId(),
        info.script.getStageId(),
        info.client,
        info.id);
    throw e;
  }
}

代码示例来源:origin: asakusafw/asakusafw

YSLOG.error("E02001", batchId, flow.getId(), executionId);
  throw e;
} catch (IOException e) {
  YSLOG.error(e, "E02001", batchId, flow.getId(), executionId);
  throw e;
} catch (InterruptedException e) {

代码示例来源:origin: asakusafw/asakusafw

info.client.submit(info.id);
} catch (IOException e) {
  YSLOG.error(e, "E01002",
      info.script.getBatchId(),
      info.script.getFlowId(),

代码示例来源:origin: asakusafw/asakusafw

context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase());
} catch (ExitCodeException e) {
  YSLOG.error("E03001",
      context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase());
  throw e;
} catch (IOException e) {
  YSLOG.error(e, "E03001",
      context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase());
  throw e;

代码示例来源:origin: asakusafw/asakusafw

getJobLabel(), getServiceLabel(), getTrackingId(context));
} catch (IOException e) {
  YSLOG.error(e, "E04001",
      context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase(),
      getJobLabel(), getServiceLabel(), getTrackingId(context));

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com