本文整理了Java中com.evolveum.midpoint.task.api.TaskManager.scheduleTaskNow()
方法的一些代码示例,展示了TaskManager.scheduleTaskNow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TaskManager.scheduleTaskNow()
方法的具体详情如下:
包路径:com.evolveum.midpoint.task.api.TaskManager
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!