Search in sources :

Example 1 with ZoningAddPathsCompleter

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;
}
Also used : ExportTaskCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ExportTaskCompleter) ArrayList(java.util.ArrayList) Workflow(com.emc.storageos.workflow.Workflow) URI(java.net.URI) ZoningAddPathsCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ZoningAddPathsCompleter)

Aggregations

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