本文整理了Java中com.evolveum.midpoint.task.api.Task.recordState()
方法的一些代码示例,展示了Task.recordState()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.recordState()
方法的具体详情如下:
包路径:com.evolveum.midpoint.task.api.Task
类名称:Task
方法名:recordState
暂无
代码示例来源:origin: Evolveum/midpoint
private void recordState(String message) {
if (task != null) {
task.recordState(message);
}
}
代码示例来源:origin: Evolveum/midpoint
long start = System.currentTimeMillis();
try {
task.recordState("Started evaluation of mapping " + mapping.getMappingContextDescription() + ".");
mapping.evaluate(task, parentResult);
task.recordState("Successfully finished evaluation of mapping " + mapping.getMappingContextDescription() + " in " + (System.currentTimeMillis()-start) + " ms.");
} catch (IllegalArgumentException e) {
task.recordState("Evaluation of mapping " + mapping.getMappingContextDescription() + " finished with error in " + (System.currentTimeMillis()-start) + " ms.");
throw new IllegalArgumentException(e.getMessage()+" in "+mapping.getContextDescription(), e);
} finally {
代码示例来源:origin: Evolveum/midpoint
task.recordState("Sending notification mail via " + host);
result.recordSuccess();
long duration = System.currentTimeMillis() - start;
task.recordState("Notification mail sent successfully via " + host + ", in " + duration + " ms overall.");
task.recordNotificationOperation(NAME, true, duration);
return;
LoggingUtils.logException(LOGGER, msg, e);
resultForServer.recordFatalError(msg, e);
task.recordState("Error sending notification mail via " + host);
内容来源于网络,如有侵权,请联系作者删除!