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 |