mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetMgrImpl.java
private synchronized void eventPerformBITResponse(final Message message, final int systemId)
    {
        final PerformBitResponseData data = (PerformBitResponseData) message;

        final UUID uuid = SharedMessageUtils.convertProtoUUIDtoUUID(data.getAssetUuid());
        //Retrieve model
        final AssetModel model = getAssetModelByUuid(uuid, systemId);

        if (model == null)
        {
            Logging.log(LogService.LOG_WARNING, "Perform BIT response for unknown asset [%s]", uuid);
            return;
        }
        
        if (data.getStatusObservationCase() != PerformBitResponseData.StatusObservationCase.STATUSOBSERVATIONNATIVE)
        {
            Logging.log(LogService.LOG_WARNING, "Asset [%s] perform BIT response in unsupported format [%s]", 
                    model.getName(), data.getStatusObservationCase());
            return;
        }
    
        //set new value
        try
        {
            convertApplyStatus(model, data.getStatusObservationNative());
        }
        catch (final ObjectConverterException exception)
        {
            Logging.log(LogService.LOG_ERROR, exception, 
                    "An error occurred while trying to parse the post-built-in-test status of asset with UUID [%s]"
                    + " from system id 0x%08x.", model.getUuid().toString(), systemId);
            return;
        }

        //post notice
        m_GrowlMessageUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset completed BIT test.", 
            String.format("Asset %s from controller 0x%08x, updated status to %s.", model.getName(), systemId,
                model.getSummaryStatus()));
        
        postSummaryStatusUpdate(model);
    }
/**
     * Event response handling for the asset namespace's PerformBITResponse.
     * @param message
     *     the message that contains the response information
     * @param systemId
     *     the system ID from which the response originated
     */
Event response handling for the asset namespace's PerformBITResponse.
@param message
the message that contains the response information
@param systemId
the system ID from which the response originated
Event response handling for the asset namespace ' s PerformBITResponse . @param message the message that contains the response information @param systemId the system ID from which the response originated
private synchronized void eventPerformBITResponse(final Message message, final int systemId)
    {
        final PerformBitResponseData data = (PerformBitResponseData) message;
        final UUID uuid = SharedMessageUtils.convertProtoUUIDtoUUID(data.getAssetUuid());
        final AssetModel model = getAssetModelByUuid(uuid, systemId);
        if (model == null)
        {
            Logging.log(LogService.LOG_WARNING, "Perform BIT response for unknown asset [%s]", uuid);
            return;
        }
        if (data.getStatusObservationCase() != PerformBitResponseData.StatusObservationCase.STATUSOBSERVATIONNATIVE)
        {
            Logging.log(LogService.LOG_WARNING, "Asset [%s] perform BIT response in unsupported format [%s]", 
                    model.getName(), data.getStatusObservationCase());
            return;
        }
        try
        {
            convertApplyStatus(model, data.getStatusObservationNative());
        }
        catch (final ObjectConverterException exception)
        {
            Logging.log(LogService.LOG_ERROR, exception, 
                    "An error occurred while trying to parse the post-built-in-test status of asset with UUID [%s]"
                    + " from system id 0x%08x.", model.getUuid().toString(), systemId);
            return;
        }
        m_GrowlMessageUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset completed BIT test.", 
            String.format("Asset %s from controller 0x%08x, updated status to %s.", model.getName(), systemId,
                model.getSummaryStatus()));
        postSummaryStatusUpdate(model);
    }
private synchronized void eventPerformBITResponse ( final Message message , final int systemId ) { final PerformBitResponseData data = ( PerformBitResponseData ) message ; final UUID uuid = SharedMessageUtils . convertProtoUUIDtoUUID ( data . getAssetUuid ( ) ) ; final AssetModel model = getAssetModelByUuid ( uuid , systemId ) ; if ( model == null ) { Logging . log ( LogService . LOG_WARNING , "Perform BIT response for unknown asset [%s]" , uuid ) ; return ; } if ( data . getStatusObservationCase ( ) != PerformBitResponseData . StatusObservationCase . STATUSOBSERVATIONNATIVE ) { Logging . log ( LogService . LOG_WARNING , "Asset [%s] perform BIT response in unsupported format [%s]" , model . getName ( ) , data . getStatusObservationCase ( ) ) ; return ; } try { convertApplyStatus ( model , data . getStatusObservationNative ( ) ) ; } catch ( final ObjectConverterException exception ) { Logging . log ( LogService . LOG_ERROR , exception , "An error occurred while trying to parse the post-built-in-test status of asset with UUID [%s]" + " from system id 0x%08x." , model . getUuid ( ) . toString ( ) , systemId ) ; return ; } m_GrowlMessageUtil . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , "Asset completed BIT test." , String . format ( "Asset %s from controller 0x%08x, updated status to %s." , model . getName ( ) , systemId , model . getSummaryStatus ( ) ) ) ; postSummaryStatusUpdate ( model ) ; }
Event response handling for the asset namespace's PerformBITResponse.
Event response handling for the asset namespace ' s PerformBITResponse .
//Retrieve model //set new value //post notice