main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
/**
     * Processes a response received from the PDP.
     *
     * @param infra infrastructure on which the response was received
     * @param topic topic on which the response was received
     * @param response the response
     */
Processes a response received from the PDP.
@param infra infrastructure on which the response was received
@param topic topic on which the response was received
@param response the response
Processes a response received from the PDP . @param infra infrastructure on which the response was received @param topic topic on which the response was received @param response the response
private void processResponse(CommInfrastructure infra, String topic, PdpStatus response) {
        synchronized (params.getModifyLock()) {
            String pdpName = response.getName();
            if (!svcmgr.isAlive()) {
                return;
            }
            svcmgr.stop();
            String reason = checkResponse(response);
            if (reason != null) {
                logger.info("{} PDP data mismatch via {} {}: {}", getName(), infra, topic, reason);
                listener.failure(pdpName, reason);
                return;
            }
            logger.info("{} successful", getName());
            listener.success(pdpName);
        }
    }
private void processResponse ( CommInfrastructure infra , String topic , PdpStatus response ) { synchronized ( params . getModifyLock ( ) ) { String pdpName = response . getName ( ) ; if ( ! svcmgr . isAlive ( ) ) { return ; } svcmgr . stop ( ) ; String reason = checkResponse ( response ) ; if ( reason != null ) { logger . info ( "{} PDP data mismatch via {} {}: {}" , getName ( ) , infra , topic , reason ) ; listener . failure ( pdpName , reason ) ; return ; } logger . info ( "{} successful" , getName ( ) ) ; listener . success ( pdpName ) ; } }
Processes a response received from the PDP.
Processes a response received from the PDP .
// this particular request must have been discarded