Search in sources :

Example 1 with DeactivateFileContinuousCopy

use of com.emc.sa.service.vipr.file.tasks.DeactivateFileContinuousCopy in project coprhd-controller by CoprHD.

the class FileStorageUtils method removeFileContinuousCopy.

private static void removeFileContinuousCopy(URI fileId, URI continuousCopyId) {
    if (isFileSystemWithActiveReplication(fileId)) {
        execute(new PauseFileContinuousCopy(fileId, continuousCopyId, FileTechnologyType.LOCAL_MIRROR.name()));
    }
    Task<FileShareRestRep> task = execute(new DeactivateFileContinuousCopy(fileId, continuousCopyId, FileControllerConstants.DeleteTypeEnum.FULL.toString()));
    addAffectedResource(task);
}
Also used : DeactivateFileContinuousCopy(com.emc.sa.service.vipr.file.tasks.DeactivateFileContinuousCopy) FileShareRestRep(com.emc.storageos.model.file.FileShareRestRep) PauseFileContinuousCopy(com.emc.sa.service.vipr.file.tasks.PauseFileContinuousCopy)

Aggregations

DeactivateFileContinuousCopy (com.emc.sa.service.vipr.file.tasks.DeactivateFileContinuousCopy)1 PauseFileContinuousCopy (com.emc.sa.service.vipr.file.tasks.PauseFileContinuousCopy)1 FileShareRestRep (com.emc.storageos.model.file.FileShareRestRep)1