use of com.emc.vipr.client.Tasks in project coprhd-controller by CoprHD.
the class ResynchronizeApplicationFullCopy method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupFullCopyResynchronizeParam input = new VolumeGroupFullCopyResynchronizeParam(true, volumeIds);
TaskList taskList = getClient().application().resynchronizeApplicationFullCopy(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.vipr.client.Tasks in project coprhd-controller by CoprHD.
the class ResynchronizeSnapshotForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setSnapshots(snapshots);
input.setPartial(true);
TaskList taskList = getClient().application().resynchronizeApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.vipr.client.Tasks in project coprhd-controller by CoprHD.
the class CreateCloneOfApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupFullCopyCreateParam input = new VolumeGroupFullCopyCreateParam();
input.setName(name);
input.setCreateInactive(false);
input.setPartial(true);
input.setVolumes(volumeIds);
TaskList taskList = getClient().application().createFullCopyOfApplication(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.vipr.client.Tasks in project coprhd-controller by CoprHD.
the class CreateSnapshotSessionForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotSessionCreateParam input = new VolumeGroupSnapshotSessionCreateParam();
input.setName(name);
input.setVolumes(volumes);
input.setPartial(true);
TaskList taskList = getClient().application().createSnapshotSessionOfApplication(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
use of com.emc.vipr.client.Tasks in project coprhd-controller by CoprHD.
the class DeleteSnapshotForApplication method doExecute.
@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
input.setPartial(true);
input.setSnapshots(snapshots);
TaskList taskList = getClient().application().deactivateApplicationSnapshot(applicationId, input);
return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Aggregations