Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Properties and property files
For details, see Properties Location: mr-application/src/main/resources| File | Purpose |
|---|---|
| application.yaml | Sets port and context for the application. |
| dee.export.properties | Configures the DEE service tool that is intended to perform data extractions. |
| logback-spring.xml | Defines the logging configuration for testing the MR application. |
| logback-spring-file.xml | Defines the logback configuration for the MR application in production. |
| mr-jaxb-mapping.xml | Defines the configuration of the Java Architecture for XML Binding (JAXB) for context values defined in the MR application. |
| serializer-jaxb-cfg.xml | Configures all the JAXB mapping resources needed by the application. |
Spring annotations
| Annotation | Meaning | Value |
|---|---|---|
| @ConditionalOnAdjustmentsWithDirectQuery | Adjustments activated as read-only for DirectQuery. | directquery.with-adjustments AND starter.deployment.type=direct-query AND configuration.sign-off.enabled |
| @ConditionalOnClickHouse | DirectQuery uses ClickHouse. | directquery.database.type=clickhouse AND starter.deployment.type=direct-query |
| @ConditionalOnDirectQueryDatabase | DirectQuery is activated. | starter.deployment.type=direct-query |
| @ConditionalOnInMemoryDatabase | InMemory mode is activated, DirectQuery is disabled. | starter.deployment.type=in-memory |
| @ConditionalOnMSSQL | DirectQuery uses MSSQL (not implemented). | directquery.database.type=mssql AND starter.deployment.type=direct-query |
| @ConditionalOnNoAdjustmentsWithDirectQuery | Sign-Off is activated but DirectQuery has no information about adjustments. | NOT directquery.with-adjustments AND starter.deployment.type=direct-query AND configuration.sign-off.enabled |
| @ConditionalOnSignOffDisabled | Sign-Off is not used. | NOT configuration.sign-off.enabled |
| @ConditionalOnSignOffEnabled | Sign-Off is fully enabled on an InMemory setup. | configuration.sign-off.enabled ANDNOT starter.deployment.type=direct-query |
| @ConditionalOnSignOffHierarchy | The Sign-Off hierarchy is displayed for InMemory or DirectQuery Cubes. | configuration.sign-off.enabled |
| @ConditionalOnSnowflake | DirectQuery uses SnowFlake. | directquery.database.type=snowflake AND starter.deployment.type=direct-query |
| @ConditionalOnAggregatedDataDisabled | The summary data are not aggregated. | NOT mr.enable.data-model.aggregated |
| @ConditionalOnAggregatedDataEnabled | The summary data are aggregated. | mr.enable.data-model.aggregated |
| @ConditionalOnAnyCubeEnabled | Any non-summary Cubes are activated | mr.enable.cubes.var OR mr.enable.cubes.pln OR mr.enable.cubes.sensi OR mr.enable.cubes.market |
| @ConditionalOnAnyPnLCubeEnabled | PnL Cube or PnL Summary Cube is activated. | mr.enable.cubes.pln OR mr.enable.cubes.pnl-summary |
| @ConditionalOnAnySensitivityCubeEnabled | Sensitivity Cube or Sensitivity Summary Cube is activated. | mr.enable.cubes.sensi OR mr.enable.cubes.sensi-summary |
| @ConditionalOnAnyVaRCubeEnabled | VaR Cube or VaR Summary Cube is activated. | mr.enable.cubes.var OR mr.enable.cubes.var-summary |
| @ConditionalOnCommonCubeEnabled | The common query Cube is activated. | mr.enable.cubes.common |
| @ConditionalOnHasDataCube | The server contains data Cubes. | starter.deployment.type != query-node |
| @ConditionalOnHasQueryCube | The server contains a query Cube. | mr.enable.cubes.common or any other query cube |
| @ConditionalOnHasSource | The data needs to be fetched from a source (Azure, Local, etc.) | dlc.enabled ANDNOT directquery.enabled |
| @ConditionalOnHasSourceAndDirectQuery | A in-memory data source is defined and DirectQuery is enabled. | dlc.enabled |
| @ConditionalOnLocalBus | The server uses the internal bus to communicate between data Cubes and query Cube. | starter.deployment.transport == local |
| @ConditionalOnLocalContentService | The content server is hosted locally | spring.profiles.active HAS local-content |
| @ConditionalOnMarketDataCubeEnabled | The Market Data Cube is activated. | mr.enable.cubes.market |
| @ConditionalOnMissingSource | There is no source set or no DirectQuery (it’s an error case). | NOT dlc.enabled ANDNOT starter.deployment.type=direct-query |
| @ConditionalOnNettyBus | The server uses the Netty bus to communicate between data Cubes and query Cube. | starter.deployment.transport == netty |
| @ConditionalOnPnLCubeEnabled | The PnL Cube is activated. | mr.enable.cubes.pln |
| @ConditionalOnPnLSummaryCubeDisabled | The PnL Summary Cube is disabled. | NOT mr.enable.cubes.pnl-summary |
| @ConditionalOnPnLSummaryCubeEnabled | The PnL Summary Cube is activated. | mr.enable.cubes.pnl-summary |
| @ConditionalOnQueryNode | The server node contains only the query Cube. | starter.deployment.type == query-node |
| @ConditionalOnRemoteContentService | The content service instance is remote. | spring.profiles.active HAS remote-content |
| @ConditionalOnSensitivityCubeEnabled | The Sensitivity Cube is activated. | mr.enable.cubes.sensi |
| @ConditionalOnSensitivitySummaryCubeDisabled | The Sensitivity Summary Cube is disabled. | NOT mr.enable.cubes.sensi-summary |
| @ConditionalOnSensitivitySummaryCubeEnabled | The Sensitivity Summary Cube is activated. | mr.enable.cubes.sensi-summary |
| @ConditionalOnVaRCubeEnabled | The VaR/ES Cube is activated. | mr.enable.cubes.var |
| @ConditionalOnVaRSummaryCubeDisabled | The VaR/ES Summary Cube is disabled. | NOT mr.enable.cubes.var-summary |
| @ConditionalOnVaRSummaryCubeEnabled | The VaR/ES Summary Cube is activated. | mr.enable.cubes.var-summary |
| @ConditionalNotOnDirectQueryDatabase | If DirectQuery is not enabled | starter.deployment.type != direct-query |
Data Files
You will need to specify where your CSV files are placed. In the default implementation, the CSV files are required to provide Atoti Server with the necessary data and configuration to do the calculations in Atoti Market Risk. All the files need to be kept under one directory of your choice anywhere on the file system. The path to this directory needs to be specified with themr.data-load.csv.dataset property. The below property needs to be updated to
specify an accessible directory containing the necessary files.
Sample files can be found in
the mr-application/src/main/resources/data folder.
Files in this folder are excluded from the mr-application JAR.
application.yaml
accordingly to point to that data.
Local Content Server
When using thelocal-content Spring profile automatically activated in the application.yaml file, Atoti Market Risk defaults to an in-memory content server with an H2 database. The core Atoti Market Risk bookmarks are imported to this server at startup. To set different bookmarks, please see the section below.
To use a different local database for the content server, modify the following properties in the application.yaml file:
- To connect to an H2 database, set the
mr.application.content-server.db.file.nameproperty, specifying the path to the database file, relative to the classpath. - To connect to a database that is not H2, set the
mr.application.content-server.db.urlproperty, specifying the JDBC URL of your database.
Bookmarks
If you want to replace the bookmarks you have persisted in your content server, there are several options for overriding the content of the content server with the core Atoti Market Risk bookmarks at startup. The behavior of the bookmark reset is driven by the contentServer.factory-reset group of properties in theapplication.yaml
file.
The mr.application.content-server.reset property determines whether the
reset is performed, and from which persistence type. Available options
are:
true: Imports data from a single JSON filefile: Same as fortruefolder: Imports the bookmarks from a folder-based hierarchical representation of the Atoti UI bookmark tree.false: Does not reset the bookmarks. The bookmarks are loaded directly from the content server without any modification.