true
if the recorded scenario will be splitted, with one file per sercvice reception. If will only be used if the format is the json
format. Note that by default the record is not splitted in several files, but is in only one file${YEAR}
variable will output the current year${MONTH}
variable will output the current month (as a number)${DAY}
variable will output the current day in the month (as a number)${INDEX}
variable will output the index of the file
${YEAR}_${MONTH}_${DAY}_scenario_${INDEX}
We will have files with names such as:
2024-3-26-scenario-6.json
The "splitGroups" is used only if the "includeAllServices" property is not present or false, and is used to groups services in the records. See splitGroups property and recorder splitFiles options for how to use this property.<applications> <application name="eventAppli"> <deployment> <lib url="samplesEvent.jar" /> </deployment> <modules> <module name="EventModule"> <implementation path="org.da.samples.protoframework.event.EventModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> </implementation> <interfaces> <eventSend service="event" attach="attach"/> <subscribe service="published" /> </interfaces> </module> </modules> </application> <application name="publishAppli"> <deployment> <lib url="samplesPublish.jar" /> </deployment> <modules> <module name="PublishModule"> <implementation path="org.da.samples.protoframework.publish.PublishModule" > <initEntryPoint method="init" /> <defaultReceiveEntryPoint method="subscribe" /> <defaultSendEntryPoint method="publish" /> </implementation> <interfaces> <eventReceived service="event"/> <cyclic service="published" frequency="200ms" attach="attach"/> </interfaces> </module> </modules> </application> <application name="recorder"> <deployment> <lib url="recorderEngine.jar"/> </deployment> <modules> <module name="recorder"> <interfaces> <eventReceived service="event"/> <subscribe service="published" /> </interfaces> </module> </modules> </application> </applications>
<properties> <application name="recorder"> <module name="recorder"> <moduleProperty value="true" key="autoStart"/> <moduleProperty value="scenario.json" key="scenario"/> <moduleProperty value="json" key="format"/> </module> </application> </properties>An example of the output JSON file is:
{ _ "date": "20240326", _ "records": [ _ { _ "absoluteTime": 1711467240167, _ "time": 195, _ "published": {"value": 1} _ }, _ { _ "absoluteTime": 1711467240959, _ "time": 987, _ "published": {"value": 5} _ }, _ { _ "absoluteTime": 1711467243099, _ "time": 3127, _ "event": {"event": true} _ }, _ { _ "absoluteTime": 1711467245161, _ "time": 5189, _ "published": {"value": 20} _ } _ ] }
<properties> <application name="recorder"> <module name="recorder"> <moduleProperty value="true" key="autoStart"/> <moduleProperty value="scenario.json" key="scenario"/> <moduleProperty value="true" key="splitFiles"/> <moduleProperty value="${YEAR}-${MONTH}-${DAY}-scenario-${INDEX}" key="splitNamePattern"/> <moduleProperty value="json" key="format"/> </module> </application> </properties>An example of the output JSON file for one notification is:
{ _ "absoluteTime": 1711461669201, _ "time": 396, _ "published": {"value": 2} }If the "includeAllServices" property is set to true, the result will be:
{ _ "absoluteTime": 1711461669201, _ "time": 396, _ "published": {"value": 2}, _ "event": {"event": false} }
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence