com.evolveum.midpoint.task.api.Task.recordState()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(69)

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

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);

相关文章

微信公众号

最新文章

更多