- reject tasks with missing dependencies.
| | |
| | | specify the number of cleaner threads: defaulting to %d threads |
| | | INFO_ERGONOMIC_SIZING_OF_JE_LOCK_TABLES_411=Local DB backend %s does not \ |
| | | specify the number of lock tables: defaulting to %d |
| | | |
| | | |
| | | SEVERE_ERR_TASKSCHED_DEPENDENCY_MISSING_412=Unable to schedule task %s \ |
| | | because its dependency task %s is missing |
| | |
| | | throw new DirectoryException(ResultCode.ENTRY_ALREADY_EXISTS, message); |
| | | } |
| | | |
| | | for (String dependencyID : task.getDependencyIDs()) |
| | | { |
| | | Task t = tasks.get(dependencyID); |
| | | if (t == null) |
| | | { |
| | | Message message = ERR_TASKSCHED_DEPENDENCY_MISSING.get( |
| | | String.valueOf(id), dependencyID); |
| | | throw new DirectoryException(ResultCode.NO_SUCH_OBJECT, message); |
| | | } |
| | | } |
| | | |
| | | tasks.put(id, task); |
| | | |
| | | TaskState state = shouldStart(task); |