use of com.emc.sa.service.vipr.block.tasks.CreateExport in project coprhd-controller by CoprHD.
the class BlockStorageUtils method createClusterExport.
public static URI createClusterExport(URI projectId, URI virtualArrayId, List<URI> volumeIds, Integer hlu, Cluster cluster, Map<URI, Integer> volumeHlus, Integer minPaths, Integer maxPaths, Integer pathsPerInitiator, URI portGroup) {
String exportName = cluster.getLabel();
Task<ExportGroupRestRep> task = execute(new CreateExport(exportName, virtualArrayId, projectId, volumeIds, hlu, cluster.getLabel(), null, cluster.getId(), volumeHlus, minPaths, maxPaths, pathsPerInitiator, portGroup));
URI exportId = task.getResourceId();
addRollback(new DeactivateBlockExport(exportId));
addAffectedResource(exportId);
return exportId;
}
use of com.emc.sa.service.vipr.block.tasks.CreateExport in project coprhd-controller by CoprHD.
the class BlockStorageUtils method createHostExport.
public static URI createHostExport(URI projectId, URI virtualArrayId, List<URI> volumeIds, Integer hlu, Host host, Map<URI, Integer> volumeHlus, Integer minPaths, Integer maxPaths, Integer pathsPerInitiator, URI portGroup) {
String exportName = host.getHostName();
Task<ExportGroupRestRep> task = execute(new CreateExport(exportName, virtualArrayId, projectId, volumeIds, hlu, host.getHostName(), host.getId(), null, volumeHlus, minPaths, maxPaths, pathsPerInitiator, portGroup));
URI exportId = task.getResourceId();
addRollback(new DeactivateBlockExport(exportId));
addAffectedResource(exportId);
return exportId;
}
Aggregations