use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.BlockConsistencyGroupUpdateCompleter in project coprhd-controller by CoprHD.
the class ReplicaDeviceController method addSnapshotSessionsToConsistencyGroup.
public boolean addSnapshotSessionsToConsistencyGroup(URI storage, URI consistencyGroup, List<URI> volumes, String opId) throws ControllerException {
TaskCompleter taskCompleter = null;
WorkflowStepCompleter.stepExecuting(opId);
try {
StorageSystem storageSystem = _dbClient.queryObject(StorageSystem.class, storage);
taskCompleter = new BlockConsistencyGroupUpdateCompleter(consistencyGroup, opId);
_blockDeviceController.getDevice(storageSystem.getSystemType()).doAddSnapshotSessionsToConsistencyGroup(storageSystem, consistencyGroup, volumes, taskCompleter);
} catch (Exception e) {
ServiceError serviceError = DeviceControllerException.errors.jobFailed(e);
taskCompleter.error(_dbClient, serviceError);
WorkflowStepCompleter.stepFailed(opId, serviceError);
return false;
}
return true;
}
use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.BlockConsistencyGroupUpdateCompleter in project coprhd-controller by CoprHD.
the class AbstractConsistencyGroupManager method updateConsistencyGroup.
/**
* {@inheritDoc}
*/
@Override
public void updateConsistencyGroup(Workflow workflow, URI vplexURI, URI cgURI, List<URI> addVolumesList, List<URI> removeVolumesList, String opId) throws InternalException {
BlockConsistencyGroupUpdateCompleter completer = new BlockConsistencyGroupUpdateCompleter(cgURI, opId);
ServiceError error = VPlexApiException.errors.unsupportedConsistencyGroupOpError(UPDATE_CONSISTENCY_GROUP_METHOD_NAME, cgURI.toString());
completer.error(dbClient, error);
}
Aggregations