mil.dod.th.remote.client.integration/src/mil/dod/th/remote/client/integration/AssetUtils.java
public static void captureData(BundleContext context, UUID uuid) throws IOException, TimeoutException
    {
        //MessageListener listener = new MessageListener(context);
        
        CaptureDataRequestData captureDataRequest = CaptureDataRequestData.newBuilder()
                .setUuid(uuid)
                .build();
        AssetNamespace namespace = AssetNamespace.newBuilder()
                .setType(AssetMessageType.CaptureDataRequest)
                .setData(captureDataRequest.toByteString())
                .build();
        getMsgSenderService(context).sendRequest(SystemConstants.REMOTE_SYS_ID, TerraHarvestPayload.newBuilder()
                .setNamespace(Namespace.Asset)
                .setNamespaceMessage(namespace.toByteString()).build());
        
        // TD: listener service doesn't support this namespace yet
        //listener.waitForMessage(CaptureDataResponseData.class, 5, TimeUnit.SECONDS);
    }
/**
     * Request asset (with the given UUID) to capture data.
     */
Request asset (with the given UUID) to capture data.
Request asset ( with the given UUID ) to capture data .
public static void captureData(BundleContext context, UUID uuid) throws IOException, TimeoutException
    {
        CaptureDataRequestData captureDataRequest = CaptureDataRequestData.newBuilder()
                .setUuid(uuid)
                .build();
        AssetNamespace namespace = AssetNamespace.newBuilder()
                .setType(AssetMessageType.CaptureDataRequest)
                .setData(captureDataRequest.toByteString())
                .build();
        getMsgSenderService(context).sendRequest(SystemConstants.REMOTE_SYS_ID, TerraHarvestPayload.newBuilder()
                .setNamespace(Namespace.Asset)
                .setNamespaceMessage(namespace.toByteString()).build());
    }
public static void captureData ( BundleContext context , UUID uuid ) throws IOException , TimeoutException { CaptureDataRequestData captureDataRequest = CaptureDataRequestData . newBuilder ( ) . setUuid ( uuid ) . build ( ) ; AssetNamespace namespace = AssetNamespace . newBuilder ( ) . setType ( AssetMessageType . CaptureDataRequest ) . setData ( captureDataRequest . toByteString ( ) ) . build ( ) ; getMsgSenderService ( context ) . sendRequest ( SystemConstants . REMOTE_SYS_ID , TerraHarvestPayload . newBuilder ( ) . setNamespace ( Namespace . Asset ) . setNamespaceMessage ( namespace . toByteString ( ) ) . build ( ) ) ; }
Request asset (with the given UUID) to capture data.
Request asset ( with the given UUID ) to capture data .
//MessageListener listener = new MessageListener(context); // TD: listener service doesn't support this namespace yet //listener.waitForMessage(CaptureDataResponseData.class, 5, TimeUnit.SECONDS);