Search in sources :

Example 1 with MoverQueryParams

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

the class VNXFileArgsCreator method fetchDataMoverInfo.

public InputStream fetchDataMoverInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
    _logger.info("Creating data mover info query");
    InputStream iStream = null;
    try {
        Query query = new Query();
        MoverQueryParams moverQuery = new MoverQueryParams();
        MoverQueryParams.AspectSelection selection = new MoverQueryParams.AspectSelection();
        selection.setMovers(true);
        moverQuery.setAspectSelection(selection);
        query.getQueryRequestChoice().add(moverQuery);
        iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(moverQuery, false);
    } catch (JAXBException jaxbException) {
        throw new VNXFilePluginException("Exception occurred while generating input xml for datamover info", jaxbException.getCause());
    }
    return iStream;
}
Also used : MoverQueryParams(com.emc.nas.vnxfile.xmlapi.MoverQueryParams) Query(com.emc.nas.vnxfile.xmlapi.Query) InputStream(java.io.InputStream) AspectSelection(com.emc.nas.vnxfile.xmlapi.FileSystemQueryParams.AspectSelection) JAXBException(javax.xml.bind.JAXBException)

Example 2 with MoverQueryParams

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

the class VNXFileArgsCreator method fetchMoverInterfacesInfo.

/**
 * create Mover interface info query and returns its stream after marshalling.
 *
 * @param argument
 * @param keyMap
 * @param index
 * @return
 * @throws VNXFilePluginException
 */
public InputStream fetchMoverInterfacesInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
    _logger.info("mover interfaces info query");
    InputStream iStream = null;
    try {
        Query query = new Query();
        MoverQueryParams moverQuery = new MoverQueryParams();
        MoverQueryParams.AspectSelection selection = new MoverQueryParams.AspectSelection();
        selection.setMoverNetworkDevices(true);
        moverQuery.setAspectSelection(selection);
        query.getQueryRequestChoice().add(moverQuery);
        iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(moverQuery, false);
    } catch (JAXBException jaxbException) {
        throw new VNXFilePluginException("Exception occurred while generating input xml for datamover info", jaxbException.getCause());
    }
    return iStream;
}
Also used : MoverQueryParams(com.emc.nas.vnxfile.xmlapi.MoverQueryParams) Query(com.emc.nas.vnxfile.xmlapi.Query) InputStream(java.io.InputStream) AspectSelection(com.emc.nas.vnxfile.xmlapi.FileSystemQueryParams.AspectSelection) JAXBException(javax.xml.bind.JAXBException)

Example 3 with MoverQueryParams

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

the class VNXFileArgsCreator method fetchStoragePortGroupInfo.

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

Example 4 with MoverQueryParams

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

the class VNXFileArgsCreator method fetchStoragePortInfo.

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

Aggregations

AspectSelection (com.emc.nas.vnxfile.xmlapi.FileSystemQueryParams.AspectSelection)4 MoverQueryParams (com.emc.nas.vnxfile.xmlapi.MoverQueryParams)4 Query (com.emc.nas.vnxfile.xmlapi.Query)4 InputStream (java.io.InputStream)4 JAXBException (javax.xml.bind.JAXBException)4