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;
}
Aggregations