本文整理了Java中com.evolveum.midpoint.task.api.TaskManager.scheduleTasksNow()
方法的一些代码示例,展示了TaskManager.scheduleTasksNow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TaskManager.scheduleTasksNow()
方法的具体详情如下:
包路径:com.evolveum.midpoint.task.api.TaskManager
类名称:TaskManager
方法名:scheduleTasksNow
[英]Schedules RUNNABLE/CLOSED tasks to be run immediately. (If a task will really start immediately, depends e.g. on whether a scheduler is started, whether there are available threads, and so on.)
[中]安排可运行/已关闭的任务立即运行。(任务是否真的会立即启动,取决于调度程序是否启动、是否有可用线程等。)
代码示例来源:origin: Evolveum/midpoint
@Override
public void scheduleTasksNow(Collection<String> taskOids, Task operationTask, OperationResult parentResult) throws SecurityViolationException, ObjectNotFoundException, SchemaException, ExpressionEvaluationException, CommunicationException, ConfigurationException {
authorizeTaskCollectionOperation(ModelAuthorizationAction.RUN_TASK_IMMEDIATELY, taskOids, operationTask, parentResult);
taskManager.scheduleTasksNow(taskOids, parentResult);
}
代码示例来源:origin: Evolveum/midpoint
} else if (task.getExecutionStatus() == TaskExecutionStatus.CLOSED) {
LOGGER.debug("Task {} is closed, scheduling it to run now", task);
taskManager.scheduleTasksNow(singleton(taskOid), result);
} else if (task.getExecutionStatus() == TaskExecutionStatus.RUNNABLE) {
if (taskManager.getLocallyRunningTaskByIdentifier(task.getTaskIdentifier()) != null) {
taskManager.scheduleTasksNow(singleton(taskOid), result);
} else {
throw new IllegalStateException("Task " + task + " cannot be restarted, because its state is: " + task.getExecutionStatus());
代码示例来源:origin: Evolveum/midpoint
taskManager.scheduleTasksNow(oidsToStart, opResult);
LOGGER.debug("Worker tasks were started: coordinator = {}, workers = {}", task, oidsToStart);
内容来源于网络,如有侵权,请联系作者删除!