use of com.emc.storageos.geomodel.VdcNodeCheckParam in project coprhd-controller by CoprHD.
the class ConnectVdcTaskOp method sendVdcNodeCheckRequest.
/**
* @param remoteVdcInfo
* @param virtualDataCenters
* @return
*/
private VdcNodeCheckResponse sendVdcNodeCheckRequest(Properties remoteVdcInfo, List<VdcConfig> virtualDataCenters) {
log.info("sending {} vdcs to {} to be checked", virtualDataCenters.size(), remoteVdcInfo.getProperty(GeoServiceJob.VDC_SHORT_ID));
VdcNodeCheckParam param = new VdcNodeCheckParam();
param.setVirtualDataCenters(virtualDataCenters);
try {
GeoServiceClient client = helper.resetGeoClientCacheTimeout(null, remoteVdcInfo, NODE_CHECK_TIMEOUT);
return client.vdcNodeCheck(param);
} finally {
// clear the client cache to reset timeouts that were altered above
geoClientCache.clearCache();
}
}
use of com.emc.storageos.geomodel.VdcNodeCheckParam in project coprhd-controller by CoprHD.
the class VdcConfigHelper method sendVdcNodeCheckRequest.
/**
* @param sendToVdc
* @param virtualDataCenters
* @return
*/
private VdcNodeCheckResponse sendVdcNodeCheckRequest(VirtualDataCenter sendToVdc, List<VdcConfig> virtualDataCenters) {
log.info("sending {} vdcs to {} to be checked", virtualDataCenters.size(), sendToVdc.getShortId());
VdcNodeCheckParam param = new VdcNodeCheckParam();
param.setVirtualDataCenters(virtualDataCenters);
try {
GeoServiceClient client = resetGeoClientCacheTimeout(sendToVdc.getShortId(), null, NODE_CHECK_TIMEOUT);
return client.vdcNodeCheck(param);
} finally {
// clear the client cache to reset timeouts that were altered above
geoClientCache.clearCache();
}
}
Aggregations