use of com.emc.nas.vnxfile.xmlapi.StoragePoolQueryParams in project coprhd-controller by CoprHD.
the class VNXFileArgsCreator method fetchStoragePoolInfo.
/**
* Create VNX Information input request xml and return its stream after
* marshalling.
*
* @param argument
* @param keyMap
* @param index
* @return
* @throws VNXFilePluginException
*/
public InputStream fetchStoragePoolInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
_logger.info("Creating VNX StorgePool Query");
InputStream iStream = null;
try {
Query query = new Query();
StoragePoolQueryParams spParams = new StoragePoolQueryParams();
query.getQueryRequestChoice().add(spParams);
iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(spParams, false);
} catch (JAXBException jaxbException) {
throw new VNXFilePluginException("Exception occurred while generating input xml for celerra system info", jaxbException.getCause());
}
return iStream;
}
Aggregations