-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#fix REQREPLY-221: Update RPC examples (#724)
* REQREPLY-221: Update RPC examples * REQREPLY-221: Fix precondition error because the participant is stil alive by the time we call finalize factory * REQREPLY-221: Add logging * REQREPLY-221: Remove white spaces * REQREPLY-221: Add timeout to request reply cs example * REQREPLY-221: Update code to use the new apis to wait for service * REQREPLY-221: Undo changes in Inventory.py * REQREPLY-221: Apply PR feedback * REQREPLY-221: Fix format * REQREPLY-221: Add test specification and test implementation * REQREPLY-221: Add makefile for java * REQREPLY-221: add csproj * REQREPLY-221: Undo change in script * REQREPLY-221: Fix tests paths * REQREPLY-221: Improve test scripts * Revert "REQREPLY-221: Improve test scripts" This reverts commit ae0e3c1. * REQREPLY-221: Fix testing * REQREPLY-221: Apply PR feedback
- Loading branch information
1 parent
94bd07a
commit db7fc05
Showing
27 changed files
with
531 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/connext_dds/remote_procedure_call/py/Inventory.idl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/******************************************************************************* | ||
(c) 2024 Copyright, Real-Time Innovations, Inc. All rights reserved. | ||
RTI grants Licensee a license to use, modify, compile, and create derivative | ||
works of the Software. Licensee has the right to distribute object form only | ||
for use with RTI products. The Software is provided "as is", with no warranty | ||
of any type, including any warranty for fitness for any purpose. RTI is under | ||
no obligation to maintain or support the Software. RTI shall not be liable for | ||
any incidental or consequential damages arising out of the use or inability to | ||
use the software. | ||
******************************************************************************/ | ||
|
||
struct Item { | ||
string name; | ||
int64 quantity; | ||
}; | ||
|
||
struct InventoryContents { | ||
sequence<Item> items; | ||
}; | ||
|
||
exception UnknownItemError { | ||
string name; | ||
}; | ||
|
||
@service("DDS") | ||
interface InventoryService { | ||
InventoryContents get_inventory(); | ||
void add_item(Item item); | ||
void remove_item(Item item) raises (UnknownItemError); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!*/java/makefile* | ||
!*.csproj |
3 changes: 3 additions & 0 deletions
3
tests/examples/connext_dds/dynamic_data_nested_structs/java/DynamicDataNestedStruct.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
cd ${BaseExamplePath}/java | ||
java -Djava.library.path=$NDDSHOME/lib/x64Linux4gcc7.3.0 -cp ".:$NDDSHOME/lib/java/nddsjava.jar" DynamicDataNestedStruct $@ |
38 changes: 38 additions & 0 deletions
38
..._dds/dynamic_data_nested_structs/java/makefile_DynamicDataNestedStructs_x64Linux4gcc7.3.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
###################################################################### | ||
# | ||
# (c) Copyright, Real-Time Innovations, 2024. | ||
# All rights reserved. | ||
# No duplications, whole or partial, manual or electronic, may be made | ||
# without express written permission. Any such copies, or | ||
# revisions thereof, must display this notice unaltered. | ||
# This code contains trade secrets of Real-Time Innovations, Inc. | ||
# | ||
###################################################################### | ||
|
||
# RTI_JAVA_OPTION=-d64 | ||
|
||
SOURCE_DIR = | ||
|
||
TARGET_ARCH=x64Linux4gcc7.3.0 | ||
|
||
ifndef DEBUG | ||
DEBUG=0 | ||
endif | ||
ifeq ($(DEBUG),1) | ||
DEBUG_FLAGS += -g | ||
else | ||
DEBUG_FLAGS = | ||
endif | ||
|
||
JAVA_PATH = java | ||
JAVAC_PATH = javac | ||
|
||
JAVA_SOURCES = $(SOURCE_DIR)./DynamicDataNestedStruct.java | ||
CLASS_FILES = $(JAVA_SOURCES:%.java=%.class) | ||
|
||
RTI_CLASSPATH := $(NDDSHOME)/lib/java/nddsjava.jar | ||
|
||
%.class : %.java | ||
$(JAVAC_PATH) $(DEBUG_FLAGS) -classpath ".:$(RTI_CLASSPATH)" $< | ||
|
||
all: $(CLASS_FILES) |
Oops, something went wrong.