mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/DataStreamServiceNamespaceUtils.java
public static TerraHarvestMessage createDataStreamServiceNamespaceMessage(final DataStreamServiceMessageType type,
            final Message message)
    {
        DataStreamServiceNamespace.Builder dataStreamMessageBuilder = DataStreamServiceNamespace.newBuilder().
                setType(type);
        
        if (message != null)
        {
            dataStreamMessageBuilder.setData(message.toByteString());
        }
        
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(
                Namespace.DataStreamService, dataStreamMessageBuilder);
        
        return thMessage;
    }
/**
     * Helper method for creating datastream service messages to send to the controller.
     * 
     * @param type
     *      type of message to be contained in the sent TerraHarvestMessage
     * @param message
     *      message data to be contained in the sent TerraHarvestMessage
     * @return
     *      TerraHarvestMessage to be sent to the controller
     */
Helper method for creating datastream service messages to send to the controller.

@param type
type of message to be contained in the sent TerraHarvestMessage
@param message
message data to be contained in the sent TerraHarvestMessage
@return
TerraHarvestMessage to be sent to the controller
Helper method for creating datastream service messages to send to the controller . @param type type of message to be contained in the sent TerraHarvestMessage @param message message data to be contained in the sent TerraHarvestMessage @return TerraHarvestMessage to be sent to the controller
public static TerraHarvestMessage createDataStreamServiceNamespaceMessage(final DataStreamServiceMessageType type,
            final Message message)
    {
        DataStreamServiceNamespace.Builder dataStreamMessageBuilder = DataStreamServiceNamespace.newBuilder().
                setType(type);
        if (message != null)
        {
            dataStreamMessageBuilder.setData(message.toByteString());
        }
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(
                Namespace.DataStreamService, dataStreamMessageBuilder);
        return thMessage;
    }
public static TerraHarvestMessage createDataStreamServiceNamespaceMessage ( final DataStreamServiceMessageType type , final Message message ) { DataStreamServiceNamespace . Builder dataStreamMessageBuilder = DataStreamServiceNamespace . newBuilder ( ) . setType ( type ) ; if ( message != null ) { dataStreamMessageBuilder . setData ( message . toByteString ( ) ) ; } TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . DataStreamService , dataStreamMessageBuilder ) ; return thMessage ; }
Helper method for creating datastream service messages to send to the controller.
Helper method for creating datastream service messages to send to the controller .