mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/RemoteTransportLayerUtils.java
public static void removeTransportLayer(final UUID transUuid, final Socket socket) throws IOException, 
        InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        
        // construct new transport message type
        DeleteRequestData removeLayer = 
                DeleteRequestData.newBuilder().setTransportLayerUuid(transUuid).build();
        
        TransportLayerNamespace.Builder transMessage = TransportLayerNamespace.newBuilder().
                setType(TransportLayerMessageType.DeleteRequest).
                setData(removeLayer.toByteString());

        // create terra harvest message
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.TransportLayer, 
                transMessage);
        
        // send out message
        message.writeDelimitedTo(socket.getOutputStream());

        listener.waitForMessage(Namespace.TransportLayer, TransportLayerMessageType.DeleteResponse, TIME_OUT);
    }
/**
     * Remove a TransportLayer, this assumes the layer is not active.
     * @param transUuid
     *      the UUID of the TransportLayer to remove
     * @param socket
     *     the socket to use for the request
     */
Remove a TransportLayer, this assumes the layer is not active.
@param transUuid
the UUID of the TransportLayer to remove
@param socket
the socket to use for the request
Remove a TransportLayer this assumes the layer is not active . @param transUuid the UUID of the TransportLayer to remove @param socket the socket to use for the request
public static void removeTransportLayer(final UUID transUuid, final Socket socket) throws IOException, 
        InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        DeleteRequestData removeLayer = 
                DeleteRequestData.newBuilder().setTransportLayerUuid(transUuid).build();
        TransportLayerNamespace.Builder transMessage = TransportLayerNamespace.newBuilder().
                setType(TransportLayerMessageType.DeleteRequest).
                setData(removeLayer.toByteString());
        TerraHarvestMessage message = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.TransportLayer, 
                transMessage);
        message.writeDelimitedTo(socket.getOutputStream());
        listener.waitForMessage(Namespace.TransportLayer, TransportLayerMessageType.DeleteResponse, TIME_OUT);
    }
public static void removeTransportLayer ( final UUID transUuid , final Socket socket ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( socket ) ; DeleteRequestData removeLayer = DeleteRequestData . newBuilder ( ) . setTransportLayerUuid ( transUuid ) . build ( ) ; TransportLayerNamespace . Builder transMessage = TransportLayerNamespace . newBuilder ( ) . setType ( TransportLayerMessageType . DeleteRequest ) . setData ( removeLayer . toByteString ( ) ) ; TerraHarvestMessage message = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . TransportLayer , transMessage ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; listener . waitForMessage ( Namespace . TransportLayer , TransportLayerMessageType . DeleteResponse , TIME_OUT ) ; }
Remove a TransportLayer, this assumes the layer is not active.
Remove a TransportLayer this assumes the layer is not active .
// construct new transport message type // create terra harvest message // send out message