use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.BlockMirrorCreateCompleter in project coprhd-controller by CoprHD.
the class BlockDeviceController method createListMirror.
public void createListMirror(URI storage, List<URI> mirrorList, Boolean createInactive, String opId) throws ControllerException {
TaskCompleter completer = null;
try {
WorkflowStepCompleter.stepExecuting(opId);
StorageSystem storageObj = _dbClient.queryObject(StorageSystem.class, storage);
completer = new BlockMirrorCreateCompleter(mirrorList, opId);
getDevice(storageObj.getSystemType()).doCreateListReplica(storageObj, mirrorList, createInactive, completer);
} catch (Exception e) {
ServiceError serviceError = DeviceControllerException.errors.jobFailed(e);
if (completer != null) {
completer.error(_dbClient, serviceError);
}
WorkflowStepCompleter.stepFailed(opId, serviceError);
}
}
Aggregations