use of org.ovirt.engine.api.model.Step in project ovirt-engine by oVirt.
the class BackendStepResourceTest method getEntity.
@Override
protected org.ovirt.engine.core.common.job.Step getEntity(int index) {
int parentIndex = 1;
org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step();
step.setId(GUIDS[index]);
step.setStepType(org.ovirt.engine.core.common.job.StepEnum.VALIDATING);
step.setJobId(GUIDS[parentIndex]);
step.setDescription(DESCRIPTIONS[index]);
step.setExternal(true);
step.setStartTime(new Date());
return step;
}
use of org.ovirt.engine.api.model.Step in project ovirt-engine by oVirt.
the class BackendStepsResourceTest method getEntity.
@Override
protected org.ovirt.engine.core.common.job.Step getEntity(int index) {
int jobIndex = index == 0 ? 1 : index - 1;
org.ovirt.engine.core.common.job.Step step = new org.ovirt.engine.core.common.job.Step();
step.setId(GUIDS[index]);
step.setJobId(GUIDS[jobIndex]);
step.setDescription(DESCRIPTIONS[index]);
step.setStepType(org.ovirt.engine.core.common.job.StepEnum.EXECUTING);
step.setStartTime(new Date());
step.setExternal(true);
return step;
}
use of org.ovirt.engine.api.model.Step in project ovirt-engine by oVirt.
the class GlusterTaskStatisticalQueryTest method getParent.
private Step getParent() {
Step step = new Step();
step.setId(Guid.Empty.toString());
step.setJob(new Job());
step.getJob().setId(Guid.Empty.toString());
return step;
}
use of org.ovirt.engine.api.model.Step in project ovirt-engine by oVirt.
the class StepStatisticalQuery method clone.
private Step clone(Step step) {
// Needed to avoid NPE in LinkHelper due to unsetting of grandparent in LinkHelper#addLinks.
Step cloned = new Step();
cloned.setId(step.getId());
cloned.setJob(new Job());
cloned.getJob().setId(step.getJob().getId());
return cloned;
}
use of org.ovirt.engine.api.model.Step in project ovirt-engine by oVirt.
the class BackendStepResource method getStepById.
private Step getStepById(Guid id) {
IdQueryParameters params = new IdQueryParameters(id);
Step step = performGet(QueryType.GetStepWithSubjectEntitiesByStepId, params);
return step;
}
Aggregations