mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/datastream/DataStreamMessageService.java
private Message disableStreamProfile(final DataStreamServiceNamespace message, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws IOException
    {
        final DisableStreamProfileRequestData disableRequest = 
                DisableStreamProfileRequestData.parseFrom(message.getData());
        
        try
        {
            final StreamProfile streamProfile = m_DataStreamService.getStreamProfile(
                    SharedMessageUtils.convertProtoUUIDtoUUID(disableRequest.getUuid()));
            streamProfile.setEnabled(false);
            m_MessageFactory.createDataStreamServiceResponseMessage(request,
                    DataStreamServiceMessageType.DisableStreamProfileResponse, null).queue(channel);
        }
        catch (final IllegalStateException e)
        {
            m_Logging.error(e, "Failed to disable stream profile");
            m_MessageFactory.createBaseErrorMessage(request, ErrorCode.ILLEGAL_STATE,
                    GENERIC_ERR_MSG + e.getMessage()).queue(channel);
        }
        
        return disableRequest;
        
    }
/**
     * Method responsible for handling a remote request to disable a stream profile based on that
     * stream profile's UUID.
     * 
     * @param message
     *      DisableStreamProfileRequest message containing the UUID of the stream profile to be disabled
     * @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 IOException
     *      if message cannot be parsed
     */
Method responsible for handling a remote request to disable a stream profile based on that
stream profile's UUID.


Method responsible for handling a remote request to disable a stream profile based on that stream profile ' s UUID .
private Message disableStreamProfile(final DataStreamServiceNamespace message, final TerraHarvestMessage request, 
            final RemoteChannel channel) throws IOException
    {
        final DisableStreamProfileRequestData disableRequest = 
                DisableStreamProfileRequestData.parseFrom(message.getData());
        try
        {
            final StreamProfile streamProfile = m_DataStreamService.getStreamProfile(
                    SharedMessageUtils.convertProtoUUIDtoUUID(disableRequest.getUuid()));
            streamProfile.setEnabled(false);
            m_MessageFactory.createDataStreamServiceResponseMessage(request,
                    DataStreamServiceMessageType.DisableStreamProfileResponse, null).queue(channel);
        }
        catch (final IllegalStateException e)
        {
            m_Logging.error(e, "Failed to disable stream profile");
            m_MessageFactory.createBaseErrorMessage(request, ErrorCode.ILLEGAL_STATE,
                    GENERIC_ERR_MSG + e.getMessage()).queue(channel);
        }
        return disableRequest;
    }
private Message disableStreamProfile ( final DataStreamServiceNamespace message , final TerraHarvestMessage request , final RemoteChannel channel ) throws IOException { final DisableStreamProfileRequestData disableRequest = DisableStreamProfileRequestData . parseFrom ( message . getData ( ) ) ; try { final StreamProfile streamProfile = m_DataStreamService . getStreamProfile ( SharedMessageUtils . convertProtoUUIDtoUUID ( disableRequest . getUuid ( ) ) ) ; streamProfile . setEnabled ( false ) ; m_MessageFactory . createDataStreamServiceResponseMessage ( request , DataStreamServiceMessageType . DisableStreamProfileResponse , null ) . queue ( channel ) ; } catch ( final IllegalStateException e ) { m_Logging . error ( e , "Failed to disable stream profile" ) ; m_MessageFactory . createBaseErrorMessage ( request , ErrorCode . ILLEGAL_STATE , GENERIC_ERR_MSG + e . getMessage ( ) ) . queue ( channel ) ; } return disableRequest ; }
Method responsible for handling a remote request to disable a stream profile based on that
 stream profile's UUID.
Method responsible for handling a remote request to disable a stream profile based on that stream profile ' s UUID .