Search in sources :

Example 1 with VdcNodeCheckParam

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();
    }
}
Also used : VdcNodeCheckParam(com.emc.storageos.geomodel.VdcNodeCheckParam) GeoServiceClient(com.emc.storageos.security.geo.GeoServiceClient)

Example 2 with VdcNodeCheckParam

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();
    }
}
Also used : VdcNodeCheckParam(com.emc.storageos.geomodel.VdcNodeCheckParam) GeoServiceClient(com.emc.storageos.security.geo.GeoServiceClient)

Aggregations

VdcNodeCheckParam (com.emc.storageos.geomodel.VdcNodeCheckParam)2 GeoServiceClient (com.emc.storageos.security.geo.GeoServiceClient)2