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

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

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

TaskManager.scheduleTaskNow介绍

[英]Schedules a RUNNABLE task or CLOSED single-run task to be run immediately. (If the task will really start immediately, depends e.g. on whether a scheduler is started, whether there are available threads, and so on.) Throws appropriate exceptions.
[中]安排可运行任务或已关闭的单次运行任务立即运行。(任务是否真的会立即启动,取决于调度程序是否启动,是否有可用线程等。)抛出适当的异常。

代码示例

代码示例来源:origin: Evolveum/midpoint

@Override
public void scheduleTaskNow(String taskOid, Task operationTask, OperationResult parentResult) throws SecurityViolationException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException {
  authorizeTaskOperation(ModelAuthorizationAction.RUN_TASK_IMMEDIATELY, taskOid, operationTask, parentResult);
  taskManager.scheduleTaskNow(taskOid, parentResult);
}

代码示例来源:origin: Evolveum/midpoint

final Long origLastRunFinishTimestamp = origTask.getLastRunFinishTimestamp();
if (kickTheTask) {
  taskManager.scheduleTaskNow(origTask, waitResult);

相关文章