use of org.ovirt.engine.core.bll.job.ExecutionContext in project ovirt-engine by oVirt.
the class EndExternalStepCommand method executeCommand.
@Override
protected void executeCommand() {
ExecutionContext context = new ExecutionContext();
context.setJob(job);
context.setStep(step);
context.setMonitored(true);
context.setExecutionMethod(ExecutionMethod.AsStep);
executionHandler.endStep(context, step, getParameters().getStatus());
setSucceeded(true);
}
use of org.ovirt.engine.core.bll.job.ExecutionContext in project ovirt-engine by oVirt.
the class CommandHelper method buildCommand.
public static CommandBase<?> buildCommand(ActionType actionType, ActionParametersBase parameters, ExecutionContext executionContext, CommandStatus cmdStatus) {
ExecutionContext cmdExecutionContext = executionContext == null ? new ExecutionContext() : executionContext;
CommandBase<?> command = CommandsFactory.createCommand(actionType, parameters, new CommandContext(new EngineContext()).withExecutionContext(cmdExecutionContext));
command.setCommandStatus(cmdStatus, false);
return command;
}
Aggregations