- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.asakusafw.yaess.core.YaessLogger.error()
方法的一些代码示例,展示了YaessLogger.error()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YaessLogger.error()
方法的具体详情如下:
包路径:com.asakusafw.yaess.core.YaessLogger
类名称: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));
本文整理了Java中com.asakusafw.yaess.core.YaessLogger类的一些代码示例,展示了YaessLogger类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中com.asakusafw.yaess.core.YaessProfile类的一些代码示例,展示了YaessProfile类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.asakusafw.yaess.core.YaessLogger.warn()方法的一些代码示例,展示了YaessLogger.warn()的具体用法。这些代码示例主要来源
本文整理了Java中com.asakusafw.yaess.core.YaessLogger.error()方法的一些代码示例,展示了YaessLogger.error()的具体用法。这些代码示例主要
本文整理了Java中com.asakusafw.yaess.core.YaessLogger.info()方法的一些代码示例,展示了YaessLogger.info()的具体用法。这些代码示例主要来源
本文整理了Java中com.asakusafw.yaess.core.YaessProfile.load()方法的一些代码示例,展示了YaessProfile.load()的具体用法。这些代码示例主要
我是一名优秀的程序员,十分优秀!