mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/BundleNamespaceUtils.java
public static void uninstallBundle(final long bundleId, final Socket socket) throws IOException, 
        InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        
        //construct request
        UninstallRequestData request = UninstallRequestData.newBuilder().
            setBundleId(bundleId).build();
        TerraHarvestMessage message = createBundleMessage(request, BundleMessageType.UninstallRequest);

        //send message
        message.writeDelimitedTo(socket.getOutputStream());
        
        // read in response
        listener.waitForMessage(Namespace.Bundle, BundleMessageType.UninstallResponse, 1000);
    }
/**
     * Uninstall the bundle with the given bundle ID.
     * @param bundleId
     *     the ID of the bundle to uninstall
     * @param socket
     *     the socket connection to use
     */
Uninstall the bundle with the given bundle ID.
@param bundleId
the ID of the bundle to uninstall
@param socket
the socket connection to use
Uninstall the bundle with the given bundle ID . @param bundleId the ID of the bundle to uninstall @param socket the socket connection to use
public static void uninstallBundle(final long bundleId, final Socket socket) throws IOException, 
        InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        UninstallRequestData request = UninstallRequestData.newBuilder().
            setBundleId(bundleId).build();
        TerraHarvestMessage message = createBundleMessage(request, BundleMessageType.UninstallRequest);
        message.writeDelimitedTo(socket.getOutputStream());
        listener.waitForMessage(Namespace.Bundle, BundleMessageType.UninstallResponse, 1000);
    }
public static void uninstallBundle ( final long bundleId , final Socket socket ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( socket ) ; UninstallRequestData request = UninstallRequestData . newBuilder ( ) . setBundleId ( bundleId ) . build ( ) ; TerraHarvestMessage message = createBundleMessage ( request , BundleMessageType . UninstallRequest ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; listener . waitForMessage ( Namespace . Bundle , BundleMessageType . UninstallResponse , 1000 ) ; }
Uninstall the bundle with the given bundle ID.
Uninstall the bundle with the given bundle ID .
//construct request //send message // read in response