Search in sources :

Example 1 with CheckpointQueryParams

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

the class VNXFileArgsCreator method fetchCheckpointInfo.

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

Aggregations

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