Search in sources :

Example 1 with VolumeGroupSnapshotOperationParam

use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam 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);
}
Also used : WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList) VolumeGroupSnapshotOperationParam(com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam)

Example 2 with VolumeGroupSnapshotOperationParam

use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.

the class CreateVplexVolumeFromAppSnapshot method doExecute.

@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
    VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
    input.setCopySetName(copySetName);
    input.setSubGroups(new ArrayList<String>(subGroups));
    TaskList taskList = getClient().application().exposeApplicationSnapshot(applicationId, input);
    return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Also used : WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList) VolumeGroupSnapshotOperationParam(com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam)

Example 3 with VolumeGroupSnapshotOperationParam

use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam in project coprhd-controller by CoprHD.

the class RestoreSnapshotForApplication method doExecute.

@Override
protected Tasks<TaskResourceRep> doExecute() throws Exception {
    VolumeGroupSnapshotOperationParam input = new VolumeGroupSnapshotOperationParam();
    input.setSnapshots(snapshots);
    input.setPartial(true);
    TaskList taskList = getClient().application().restoreApplicationSnapshot(applicationId, input);
    return new Tasks<TaskResourceRep>(getClient().auth().getClient(), taskList.getTaskList(), TaskResourceRep.class);
}
Also used : WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList) VolumeGroupSnapshotOperationParam(com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam)

Example 4 with VolumeGroupSnapshotOperationParam

use of com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam 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);
}
Also used : WaitForTasks(com.emc.sa.service.vipr.tasks.WaitForTasks) Tasks(com.emc.vipr.client.Tasks) TaskList(com.emc.storageos.model.TaskList) VolumeGroupSnapshotOperationParam(com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam)

Aggregations

WaitForTasks (com.emc.sa.service.vipr.tasks.WaitForTasks)4 TaskList (com.emc.storageos.model.TaskList)4 VolumeGroupSnapshotOperationParam (com.emc.storageos.model.application.VolumeGroupSnapshotOperationParam)4 Tasks (com.emc.vipr.client.Tasks)4