Search in sources :

Example 1 with ExportGroupRemoveVolumesCleanupCompleter

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

the class AbstractDefaultMaskingOrchestrator method generateExportGroupRemoveVolumesCleanup.

/**
 * Generate workflow steps to remove volumes from an export mask.
 *
 * @param workflow
 *            workflow
 * @param previousStep
 *            previous step ID
 * @param storage
 *            storage device
 * @param exportGroup
 *            export group
 * @param volumeURIs
 *            volume list
 * @param initiatorURIs
 *            initiators impacted by this operation
 * @return step ID
 */
public String generateExportGroupRemoveVolumesCleanup(Workflow workflow, String previousStep, StorageSystem storage, ExportGroup exportGroup, List<URI> volumeURIs, List<URI> initiatorURIs) {
    URI exportGroupURI = exportGroup.getId();
    URI storageURI = storage.getId();
    String cleanupStep = workflow.createStepId();
    ExportTaskCompleter exportTaskCompleter = new ExportGroupRemoveVolumesCleanupCompleter(exportGroupURI, cleanupStep);
    Workflow.Method cleanupExecuteMethod = new Workflow.Method("doExportGroupRemoveVolumesCleanup", storageURI, exportGroupURI, volumeURIs, initiatorURIs, exportTaskCompleter);
    cleanupStep = workflow.createStep(EXPORT_GROUP_CLEANUP_TASK, String.format("Cleanup of volumes from export group %s", exportGroup.getLabel()), previousStep, storageURI, storage.getSystemType(), MaskingWorkflowEntryPoints.class, cleanupExecuteMethod, null, cleanupStep);
    return cleanupStep;
}
Also used : ExportTaskCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportTaskCompleter) ExportGroupRemoveVolumesCleanupCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportGroupRemoveVolumesCleanupCompleter) Workflow(com.emc.storageos.workflow.Workflow) URI(java.net.URI)

Aggregations

ExportGroupRemoveVolumesCleanupCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportGroupRemoveVolumesCleanupCompleter)1 ExportTaskCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportTaskCompleter)1 Workflow (com.emc.storageos.workflow.Workflow)1 URI (java.net.URI)1