use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.ZoningAddPathsCompleter in project coprhd-controller by CoprHD.
the class ExportWorkflowUtils method generateZoningAddPathsWorkflow.
/**
* Generate workflow step for add path zoning
*
* @param workflow -- workflow step to be added to
* @param wfGroupId -- worflow group id
* @param storageURI -- Storage System URI
* @param exportGroupURI -- Export Group URI
* @param adjustedPaths - The paths going to be added and/or retained
* @param waitFor -- wait for this previous step
* @return stepId that was generated
* @throws ControllerException
*/
public String generateZoningAddPathsWorkflow(Workflow workflow, String wfGroupId, URI systemURI, URI exportGroupURI, Map<URI, Map<URI, List<URI>>> exportMaskNewPathsMap, Map<URI, List<URI>> newPaths, String waitFor) throws ControllerException {
String zoningStep = workflow.createStepId();
ExportTaskCompleter taskCompleter = new ZoningAddPathsCompleter(exportGroupURI, zoningStep, exportMaskNewPathsMap);
List<URI> maskURIs = new ArrayList<URI>(exportMaskNewPathsMap.keySet());
Workflow.Method zoningExecuteMethod = networkDeviceController.zoneExportAddPathsMethod(systemURI, exportGroupURI, maskURIs, newPaths, taskCompleter);
zoningStep = workflow.createStep(wfGroupId, "Zoning add paths subtask: " + exportGroupURI, waitFor, NullColumnValueGetter.getNullURI(), "network-system", networkDeviceController.getClass(), zoningExecuteMethod, null, zoningStep);
return zoningStep;
}
Aggregations