mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/osgi/TestBundleManagementMessageService.java
private TerraHarvestMessage createTerraHarvestMessage(final Message bundleMessage, final BundleMessageType type)
    {
        BundleNamespace.Builder namespaceBuilder = BundleNamespace.newBuilder().setType(type);
        if (bundleMessage != null)
        {
            namespaceBuilder.setData(bundleMessage.toByteString());
        }
        return TerraHarvestMessageHelper.createTerraHarvestMessage(0, 1, Namespace.Bundle, 100, 
                namespaceBuilder.build());
    }
/**
     * Construct a TerraHarvestMessage wrapping a bundle message.
     * @param bundleMessage
     *     bundle message
     * @param type
     *     the type of the message
     */
Construct a TerraHarvestMessage wrapping a bundle message.
@param bundleMessage
bundle message
@param type
the type of the message
Construct a TerraHarvestMessage wrapping a bundle message . @param bundleMessage bundle message @param type the type of the message
private TerraHarvestMessage createTerraHarvestMessage(final Message bundleMessage, final BundleMessageType type)
    {
        BundleNamespace.Builder namespaceBuilder = BundleNamespace.newBuilder().setType(type);
        if (bundleMessage != null)
        {
            namespaceBuilder.setData(bundleMessage.toByteString());
        }
        return TerraHarvestMessageHelper.createTerraHarvestMessage(0, 1, Namespace.Bundle, 100, 
                namespaceBuilder.build());
    }
private TerraHarvestMessage createTerraHarvestMessage ( final Message bundleMessage , final BundleMessageType type ) { BundleNamespace . Builder namespaceBuilder = BundleNamespace . newBuilder ( ) . setType ( type ) ; if ( bundleMessage != null ) { namespaceBuilder . setData ( bundleMessage . toByteString ( ) ) ; } return TerraHarvestMessageHelper . createTerraHarvestMessage ( 0 , 1 , Namespace . Bundle , 100 , namespaceBuilder . build ( ) ) ; }
Construct a TerraHarvestMessage wrapping a bundle message.
Construct a TerraHarvestMessage wrapping a bundle message .