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;
}
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;
}
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;
}
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;
}
Aggregations