use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.StoragePortGroupCreateCompleter in project coprhd-controller by CoprHD.
the class BlockDeviceController method createStoragePortGroup.
@Override
public void createStoragePortGroup(URI systemURI, URI portGroupURI, String opId) {
TaskCompleter completer = new StoragePortGroupCreateCompleter(portGroupURI, opId);
try {
StorageSystem system = _dbClient.queryObject(StorageSystem.class, systemURI);
WorkflowStepCompleter.stepExecuting(opId);
getDevice(system.getSystemType()).doCreateStoragePortGroup(system, portGroupURI, completer);
} catch (Exception e) {
ServiceError serviceError = DeviceControllerException.errors.jobFailed(e);
completer.error(_dbClient, serviceError);
}
}
Aggregations