use of com.emc.storageos.volumecontroller.impl.block.taskcompleter.ZoningRemovePathsCompleter in project coprhd-controller by CoprHD.
the class ExportWorkflowUtils method generateZoningRemovePathsWorkflow.
/**
* Generate workflow step for remove paths zoning
*
* @param workflow - workflow
* @param wfGroupId - workflow group id
* @param storageURI - system URI
* @param exportGroupURI - export group URI
* @param maskAjustedPathMap - adjusted paths per mask
* @param maskRemovePaths - remove paths per mask
* @param waitFor - wait for step
* @return - generated step id
* @throws ControllerException
*/
public String generateZoningRemovePathsWorkflow(Workflow workflow, String wfGroupId, URI storageURI, URI exportGroupURI, Map<URI, Map<URI, List<URI>>> maskAdjustedPathMap, Map<URI, Map<URI, List<URI>>> maskRemovePaths, String waitFor) throws ControllerException {
String zoningStep = workflow.createStepId();
ZoningRemovePathsCompleter taskCompleter = new ZoningRemovePathsCompleter(exportGroupURI, zoningStep, maskAdjustedPathMap);
List<NetworkZoningParam> zoningParams = NetworkZoningParam.convertPathsToNetworkZoningParam(exportGroupURI, maskRemovePaths, _dbClient);
Workflow.Method zoningExecuteMethod = networkDeviceController.zoneExportRemovePathsMethod(zoningParams, taskCompleter);
zoningStep = workflow.createStep(wfGroupId, "Zoning subtask for remvoe paths: " + exportGroupURI, waitFor, NullColumnValueGetter.getNullURI(), "network-system", networkDeviceController.getClass(), zoningExecuteMethod, null, zoningStep);
return zoningStep;
}
Aggregations