Search in sources :

Example 1 with TaskLockingCompleter

use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.TaskLockingCompleter in project coprhd-controller by CoprHD.

the class RPDeviceController method doFailAddStep.

private void doFailAddStep(List<VolumeDescriptor> volumeDescriptors, String taskId, Exception e) throws InternalException {
    final List<URI> volumeURIs = getVolumeURIs(volumeDescriptors);
    final TaskLockingCompleter completer = new RPCGCreateCompleter(volumeURIs, taskId);
    _log.error("Could not create protection for RecoverPoint on volumes: " + volumeURIs, e);
    final ServiceCoded error;
    if (e instanceof ServiceCoded) {
        error = (ServiceCoded) e;
    } else {
        error = DeviceControllerErrors.recoverpoint.couldNotCreateProtectionOnVolumes(volumeURIs);
    }
    _log.error(error.getMessage());
    completer.error(_dbClient, _locker, error);
}
Also used : ServiceCoded(com.emc.storageos.svcs.errorhandling.model.ServiceCoded) RPCGCreateCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.RPCGCreateCompleter) TaskLockingCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.TaskLockingCompleter) NamedURI(com.emc.storageos.db.client.model.NamedURI) URI(java.net.URI)

Aggregations

NamedURI (com.emc.storageos.db.client.model.NamedURI)1 ServiceCoded (com.emc.storageos.svcs.errorhandling.model.ServiceCoded)1 RPCGCreateCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.RPCGCreateCompleter)1 TaskLockingCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.TaskLockingCompleter)1 URI (java.net.URI)1