Search in sources :

Example 1 with CelerraSystemQueryParams

use of com.emc.nas.vnxfile.xmlapi.CelerraSystemQueryParams in project coprhd-controller by CoprHD.

the class VNXFileArgsCreator method fetchCelerraSystemInfo.

/**
 * Create VNX Information input request xml and return its stream after
 * marshalling.
 *
 * @param argument
 * @param keyMap
 * @param index
 * @return
 * @throws VNXFilePluginException
 */
public InputStream fetchCelerraSystemInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
    _logger.info("Creating celerra system query");
    InputStream iStream = null;
    try {
        Query query = new Query();
        CelerraSystemQueryParams celerraParams = new CelerraSystemQueryParams();
        query.getQueryRequestChoice().add(celerraParams);
        iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(celerraParams, false);
    } catch (JAXBException jaxbException) {
        throw new VNXFilePluginException("Exception occurred while generating input xml for celerra system info", jaxbException.getCause());
    }
    return iStream;
}
Also used : Query(com.emc.nas.vnxfile.xmlapi.Query) InputStream(java.io.InputStream) JAXBException(javax.xml.bind.JAXBException) CelerraSystemQueryParams(com.emc.nas.vnxfile.xmlapi.CelerraSystemQueryParams)

Aggregations

CelerraSystemQueryParams (com.emc.nas.vnxfile.xmlapi.CelerraSystemQueryParams)1 Query (com.emc.nas.vnxfile.xmlapi.Query)1 InputStream (java.io.InputStream)1 JAXBException (javax.xml.bind.JAXBException)1