function updateHealthMonitorCB(request, appData, callback) {
    logutils.logger.debug('updateHealthMonitorCB');
    if (!(hmId = request.param('uuid').toString())) {
        error = new appErrors.RESTServerError('Health Monitor uuid is missing');
        commonUtils.handleJSONResponse(error, response, null);
        return;
    }
    var hmPutData = request.body;
    var hmPutURL = '/loadbalancer-healthmonitor/';
    if (!('loadbalancer-healthmonitor' in hmPutData)
            || (!('uuid' in hmPutData['loadbalancer-healthmonitor']))) {
        error = new appErrors.RESTServerError(
                'Health Monitor object or its uuid missing ');
        callback(error, hmPutData);
        return;
    }
    var hmUUID = hmPutData['loadbalancer-healthmonitor']['uuid'];
    if (hmId != hmUUID) {
        error = new appErrors.RESTServerError(
                'healthmonitor Id and healthmonitor Object uuid mismatch ');
        callback(error, hmPutData);
        return;
    }

    hmPutURL += hmUUID;
    hmPutData = removeHMBackRefs(hmPutData);
    jsonDiff.getConfigDiffAndMakeCall(hmPutURL, appData, hmPutData, function(
            locError, data) {
        error = appendMessage(locError, locError);
        callback(error, data);
    });
}
/**
 * @updateHealthMonitorCB private function 1. Callback for HealthMonitor update
 *                        operations 2. Send a call to Update the HM diff
 */
@updateHealthMonitorCB private function 1. Callback for HealthMonitor update
operations 2. Send a call to Update the HM diff
@updateHealthMonitorCB private function 1 . Callback for HealthMonitor update operations 2 . Send a call to Update the HM diff
function updateHealthMonitorCB(request, appData, callback) {
    logutils.logger.debug('updateHealthMonitorCB');
    if (!(hmId = request.param('uuid').toString())) {
        error = new appErrors.RESTServerError('Health Monitor uuid is missing');
        commonUtils.handleJSONResponse(error, response, null);
        return;
    }
    var hmPutData = request.body;
    var hmPutURL = '/loadbalancer-healthmonitor/';
    if (!('loadbalancer-healthmonitor' in hmPutData)
            || (!('uuid' in hmPutData['loadbalancer-healthmonitor']))) {
        error = new appErrors.RESTServerError(
                'Health Monitor object or its uuid missing ');
        callback(error, hmPutData);
        return;
    }
    var hmUUID = hmPutData['loadbalancer-healthmonitor']['uuid'];
    if (hmId != hmUUID) {
        error = new appErrors.RESTServerError(
                'healthmonitor Id and healthmonitor Object uuid mismatch ');
        callback(error, hmPutData);
        return;
    }
    hmPutURL += hmUUID;
    hmPutData = removeHMBackRefs(hmPutData);
    jsonDiff.getConfigDiffAndMakeCall(hmPutURL, appData, hmPutData, function(
            locError, data) {
        error = appendMessage(locError, locError);
        callback(error, data);
    });
}
function updateHealthMonitorCB ( request , appData , callback ) { logutils . logger . debug ( 'updateHealthMonitorCB' ) ; if ( ! ( hmId = request . param ( 'uuid' ) . toString ( ) ) ) { error = new appErrors . RESTServerError ( 'Health Monitor uuid is missing' ) ; commonUtils . handleJSONResponse ( error , response , null ) ; return ; } var hmPutData = request . body ; var hmPutURL = '/loadbalancer-healthmonitor/' ; if ( ! ( 'loadbalancer-healthmonitor' in hmPutData ) || ( ! ( 'uuid' in hmPutData [ 'loadbalancer-healthmonitor' ] ) ) ) { error = new appErrors . RESTServerError ( 'Health Monitor object or its uuid missing ' ) ; callback ( error , hmPutData ) ; return ; } var hmUUID = hmPutData [ 'loadbalancer-healthmonitor' ] [ 'uuid' ] ; if ( hmId != hmUUID ) { error = new appErrors . RESTServerError ( 'healthmonitor Id and healthmonitor Object uuid mismatch ' ) ; callback ( error , hmPutData ) ; return ; } hmPutURL += hmUUID ; hmPutData = removeHMBackRefs ( hmPutData ) ; jsonDiff . getConfigDiffAndMakeCall ( hmPutURL , appData , hmPutData , function ( locError , data ) { error = appendMessage ( locError , locError ) ; callback ( error , data ) ; } ) ; }
@updateHealthMonitorCB private function 1.
@updateHealthMonitorCB private function 1 .