use of com.emc.storageos.volumecontroller.impl.file.FileMirrorRollbackCompleter in project coprhd-controller by CoprHD.
the class FileReplicationDeviceController method rollbackMirrorFileShareStep.
/**
* Roll back Mirror session between source and target
*
* @param systemURI
* @param sourceURIs
* @param targetURIs
* @param opId
* @return
*/
public boolean rollbackMirrorFileShareStep(URI systemURI, List<URI> sourceURIs, List<URI> targetURIs, String opId) {
log.info("START rollback Mirror links");
TaskCompleter completer = null;
try {
WorkflowStepCompleter.stepExecuting(opId);
StorageSystem system = getStorageSystem(systemURI);
completer = new FileMirrorRollbackCompleter(sourceURIs, opId);
getRemoteMirrorDevice(system).doRollbackMirrorLink(system, sourceURIs, targetURIs, completer, opId);
} catch (Exception e) {
log.error("Ignoring exception while rolling back Mirror sources: {}", sourceURIs, e);
// Succeed here, to allow other rollbacks to run
if (null != completer) {
completer.ready(dbClient);
}
WorkflowStepCompleter.stepSucceded(opId);
return false;
}
return true;
}
Aggregations