RTI Routing Service Version 7.2.0
RTI Routing Library API

Routing Service can be deployed as a Java library This API allows you to create, configure and start RTI Routing Service instances from your application. More...

Classes

class  RoutingService
 RTI Routing Service. More...
 
class  RoutingServiceProperty
 Configuration of RTI Routing Service. More...
 

Detailed Description

Routing Service can be deployed as a Java library This API allows you to create, configure and start RTI Routing Service instances from your application.

The following code shows the typical use of the API:

prop.cfgFile = "my_routing_service_cfg.xml";
prop.serviceName = "my_routing_service";
try(RoutingService rs = new RoutingService(prop)) {
rs.start();
...
}
Configuration of RTI Routing Service.
Definition: RoutingServiceProperty.java:30
String serviceName
The name of the Routing Service instance to run.
Definition: RoutingServiceProperty.java:88
String cfgFile
Path to an RTI Routing Service configuration file.
Definition: RoutingServiceProperty.java:46
RTI Routing Service.
Definition: RoutingService.java:66

Instead of a file, you can use XML strings to configure RTI Routing Service. See RoutingServiceProperty for more information.

Your application must be built against the RTI Routing Service jar file in <NDDSHOME>/lib/java/ which must be able to dynamically load the RTI Routing Service library in <NDDSHOME>/lib/<architecture>/

Exceptions: Calls on RoutingService and RoutingServiceProperty may throw infrastructure.RoutingServiceException upon failure.