mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/comms/LinkLayerMessageService.java
private Message isActivated(final LinkLayerNamespace linkLayerMessage, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws InvalidProtocolBufferException
    {
        final IsActivatedRequestData isActivatedRequest = IsActivatedRequestData.parseFrom(linkLayerMessage.getData());

        final LinkLayer requestedLinkLayer = CustomCommUtility.getLinkLayerByUuid(m_CommsService,
                isActivatedRequest.getUuid());

        final IsActivatedResponseData response = IsActivatedResponseData.newBuilder().setIsActivated(
                requestedLinkLayer.isActivated()).setUuid(isActivatedRequest.getUuid()).build();

        m_MessageFactory.createLinkLayerResponseMessage(request, LinkLayerMessageType.IsActivatedResponse, 
                response).queue(channel);
        
        return isActivatedRequest;
    }
/**
     * Check whether the link layer specified is activated.
     * @param linkLayerMessage
     *      request message containing the specific link layer the user wants.
     * @param request
     *      entire remote message for the request
     * @param channel
     *      channel to use for sending a response
     * @return
     *      the data message for this request 
     * @throws InvalidProtocolBufferException
     *      message being parsed is invalid in some way
     */
Check whether the link layer specified is activated.
@param linkLayerMessage
request message containing the specific link layer the user wants.
@param request
entire remote message for the request
@param channel
channel to use for sending a response
@return
the data message for this request
@throws InvalidProtocolBufferException
message being parsed is invalid in some way
Check whether the link layer specified is activated . @param linkLayerMessage request message containing the specific link layer the user wants . @param request entire remote message for the request @param channel channel to use for sending a response @return the data message for this request @throws InvalidProtocolBufferException message being parsed is invalid in some way
private Message isActivated(final LinkLayerNamespace linkLayerMessage, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws InvalidProtocolBufferException
    {
        final IsActivatedRequestData isActivatedRequest = IsActivatedRequestData.parseFrom(linkLayerMessage.getData());
        final LinkLayer requestedLinkLayer = CustomCommUtility.getLinkLayerByUuid(m_CommsService,
                isActivatedRequest.getUuid());
        final IsActivatedResponseData response = IsActivatedResponseData.newBuilder().setIsActivated(
                requestedLinkLayer.isActivated()).setUuid(isActivatedRequest.getUuid()).build();
        m_MessageFactory.createLinkLayerResponseMessage(request, LinkLayerMessageType.IsActivatedResponse, 
                response).queue(channel);
        return isActivatedRequest;
    }
private Message isActivated ( final LinkLayerNamespace linkLayerMessage , final TerraHarvestMessage request , final RemoteChannel channel ) throws InvalidProtocolBufferException { final IsActivatedRequestData isActivatedRequest = IsActivatedRequestData . parseFrom ( linkLayerMessage . getData ( ) ) ; final LinkLayer requestedLinkLayer = CustomCommUtility . getLinkLayerByUuid ( m_CommsService , isActivatedRequest . getUuid ( ) ) ; final IsActivatedResponseData response = IsActivatedResponseData . newBuilder ( ) . setIsActivated ( requestedLinkLayer . isActivated ( ) ) . setUuid ( isActivatedRequest . getUuid ( ) ) . build ( ) ; m_MessageFactory . createLinkLayerResponseMessage ( request , LinkLayerMessageType . IsActivatedResponse , response ) . queue ( channel ) ; return isActivatedRequest ; }
Check whether the link layer specified is activated.
Check whether the link layer specified is activated .