Search in sources :

Example 1 with MountQueryParams

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

the class VNXFileArgsCreator method fetchMountFSInfo.

/**
 * create Mount query and returns its stream after marshalling.
 *
 * @param argument
 * @param keyMap
 * @param index
 * @return
 * @throws VNXFilePluginException
 */
public InputStream fetchMountFSInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
    _logger.info("VNX File System Mount info query");
    InputStream iStream = null;
    try {
        Query query = new Query();
        MountQueryParams mountQueryParams = new MountQueryParams();
        query.getQueryRequestChoice().add(mountQueryParams);
        iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(mountQueryParams, 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) MountQueryParams(com.emc.nas.vnxfile.xmlapi.MountQueryParams) InputStream(java.io.InputStream) JAXBException(javax.xml.bind.JAXBException)

Aggregations

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