use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.CloneActivateCompleter in project coprhd-controller by CoprHD.
the class BlockDeviceController method activateFullCopyStep.
public void activateFullCopyStep(URI storage, List<URI> fullCopy, String opId) {
try {
StorageSystem storageSystem = _dbClient.queryObject(StorageSystem.class, storage);
TaskCompleter taskCompleter = new CloneActivateCompleter(fullCopy, opId);
if (checkCloneConsistencyGroup(fullCopy.get(0), _dbClient, taskCompleter)) {
getDevice(storageSystem.getSystemType()).doActivateGroupFullCopy(storageSystem, fullCopy, taskCompleter);
} else {
getDevice(storageSystem.getSystemType()).doActivateFullCopy(storageSystem, fullCopy.get(0), taskCompleter);
}
} catch (Exception e) {
ServiceError serviceError = DeviceControllerException.errors.jobFailed(e);
WorkflowStepCompleter.stepFailed(opId, serviceError);
doFailTask(Volume.class, fullCopy, opId, serviceError);
}
}
Aggregations