Search in sources :

Example 1 with HDSExportMaskDeleteCompleter

use of com.emc.storageos.volumecontroller.impl.hds.prov.job.HDSExportMaskDeleteCompleter in project coprhd-controller by CoprHD.

the class HDSMaskingOrchestrator method generateDeviceSpecificDeleteWorkflow.

@Override
public String generateDeviceSpecificDeleteWorkflow(Workflow workflow, String previousStep, ExportGroup exportGroup, ExportMask mask, List<URI> volumes, List<URI> initiators, StorageSystem storage) throws Exception {
    List<ExportMask> masks = new ArrayList<ExportMask>();
    masks.add(mask);
    ExportTaskCompleter hdsExportMaskDeleteCompleter = new HDSExportMaskDeleteCompleter(exportGroup.getId(), mask.getId(), previousStep);
    String exportMaskDeleteStepId = generateExportMaskDeleteWorkflow(workflow, null, storage, exportGroup, mask, volumes, initiators, hdsExportMaskDeleteCompleter);
    String zoningStepId = generateZoningDeleteWorkflow(workflow, exportMaskDeleteStepId, exportGroup, masks);
    generateWorkflowStepToMarkExportMaskInActive(workflow, zoningStepId, exportGroup, mask, null);
    return exportMaskDeleteStepId;
}
Also used : ExportTaskCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportTaskCompleter) ExportMask(com.emc.storageos.db.client.model.ExportMask) ArrayList(java.util.ArrayList) HDSExportMaskDeleteCompleter(com.emc.storageos.volumecontroller.impl.hds.prov.job.HDSExportMaskDeleteCompleter)

Aggregations

ExportMask (com.emc.storageos.db.client.model.ExportMask)1 ExportTaskCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportTaskCompleter)1 HDSExportMaskDeleteCompleter (com.emc.storageos.volumecontroller.impl.hds.prov.job.HDSExportMaskDeleteCompleter)1 ArrayList (java.util.ArrayList)1