Adding the DEE Library to a Project
Grab the compiled Data Connectors library from the London Maven repository and add it as a dependency of your project.
The following are examples of importing the InMemory and CSV extraction sources. More on supported sources can be found in module structure.
<!-- CSV data extraction support -->
<dependency>
<groupId>com.activeviam.io</groupId>
<artifactId>data-connectors-csv</artifactId>
<version>${dataconnectors.version}</version>
</dependency>
<!-- In-Memory data extraction support -->
<dependency>
<groupId>com.activeviam.io</groupId>
<artifactId>data-connectors-core</artifactId>
<version>${dataconnectors.version}</version>
</dependency>
The external properties are retrieved using the Spring @Value
mechanism. For it to work in your project you need to ensure you have the following code into your main Spring Config class.
@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
final PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer = new PropertySourcesPlaceholderConfigurer();
propertySourcesPlaceholderConfigurer.setIgnoreUnresolvablePlaceholders(true);
return propertySourcesPlaceholderConfigurer;
}
Import the monitoring layer of the exposed services
The library offers more verbose calls to the different services exposed by the cube (Queries, Streaming, Json, Xmla, HealthEvent). The library provides the necessary Spring Config files you need to use to enable the DEE in your project.
All-In-One Configuration File
All config files can easily be added by simply adding the target-specific configuration to your applications config. These config files contain all config files needed for DEE.
Target | Config |
---|---|
Local CSV File | CsvDataExtractionEngineConfig |
In Memory | InMemoryDataExtractionEngineConfig |
Individual Configuration Files
Additionally, users can import specific configs, below are configs for the CSV target:
CSV Specific Implementation | Description |
---|---|
CsvDataExtractionServicesConfig |
Registers the services for the Data Extraction Engine (ILocalDataExtractionService ) and Enhanced Drill-Through ILocalEnhancedDrillthroughService |
DataExtractionWebServicesConfig |
Exposes the services so they can be accessible using Web-Services |
DataExtractionRemotingServicesConfig |
Exposes the services so they can be accessible using Remoting |
CsvDataExtractionRestServicesConfig |
Exposes the services so they can be accessible using REST (work in progress) |