uCosminexus Stream Data Platform - Application Framework Application Development Guide

[Contents][Index][Back][Next]

8.1 Sample program configuration

This section explains the configuration of the sample programs provided by Stream Data Platform - AF.

To execute a sample program, first copy the entire directory installation-directory\samples\api\, containing the files shown in the table below, to working-directory\samples\api\.

Note that you would use different sample program files depending on the custom adaptor's process configuration

Table 8-1 Sample program configuration

Directory File Custom adaptor's process configuration Explanation
RMI connection In-process connection
query\ Inprocess_QueryTest N Y In-process connection query definition file
RMI_QueryTest Y N RMI connection query definition file
conf\ Inprocess_QueryGroupTest#1 N Y Property file for in-process connection query group
jvm_client_options.cfg#2 Y N JavaVM options file for RMI connections
jvm_options.cfg#3 Y Y JavaVM options file for SDP servers
logger.properties Y Y Log file output property file
RMI_QueryGroupTest#4 Y N Property file for RMI connection query group
system_config.properties Y Y System configuration property file
user_app.InprocessAPTest.properties#5 N Y In-process connection property file
src\samples\ Inprocess_Main.java N Y In-process connection transmission/reception control application
Inprocess_Receiver.java N Y In-process connection data reception application
Inprocess_Sender.java N Y In-process connection data transmission application
RMI_ReceiveTupleTest.java Y N RMI connection data reception application
RMI_SendTupleTest.java Y N RMI connection data transmission application

Legend:
Y: Used. N: Not used.

#1
In Inprocess_QueryGroupTest, the path of the query definition file for in-process connection is set to:
querygroup.cqlFilePath=.\\samples\\api\\query\\Inprocess_QueryTest

#2
In jvm_client_options.cfg, the paths to the log file output destination (working-directory\logs\) and the class path are set to:
SDP_JVM_LOG=-XX:HitachiJavaLog:.\\logs\\SDPClientVM
SDP_CLASS_PATH=.\\samples\\api\\src

#3
In jvm_options.cfg, the path of the log file output destination (working-directory\logs\) is set to:
SDP_JVM_LOG=-XX:HitachiJavaLog:.\\logs\\SDPServerVM

#4
In RMI_QueryGroupTest, the path of the query definition file for RMI connection is set to:
querygroup.cqlFilePath=.\\samples\\api\\query\\RMI_QueryTest

#5
In user_app.InprocessAPTest.properties, the paths to the main class name and class path for in-process connection are set to:
user_app.classname=samples.Inprocess_Main
user_app.classpath_dir=.\\samples\\api\\src