Search in sources :

Example 1 with ZoningRemovePathsCompleter

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;
}
Also used : ZoningRemovePathsCompleter(com.emc.storageos.volumecontroller.impl.block.taskcompleter.ZoningRemovePathsCompleter) Workflow(com.emc.storageos.workflow.Workflow) NetworkZoningParam(com.emc.storageos.networkcontroller.impl.NetworkZoningParam)

Aggregations

NetworkZoningParam (com.emc.storageos.networkcontroller.impl.NetworkZoningParam)1 ZoningRemovePathsCompleter (com.emc.storageos.volumecontroller.impl.block.taskcompleter.ZoningRemovePathsCompleter)1 Workflow (com.emc.storageos.workflow.Workflow)1