The storage component for the Sensing Architecture developed in the ProaSense project (http://www.proasense.eu). The storage layer builds upon the ideas of SensApp and extends it with additional capabilities from the ProaSense project addressing specific requirements for the sensing enterprise.
- MongoDB 3.0 or higher
###Modules The storage component consists of four modules:
- storage-base, which contains common, shared base classes for the Storage Writer, Storage Reader and Storage Registry services.
- storage-writer, which contains the classes for the Storage Writer service.
- storage-reader, which contains the classes for the Storage Reader service.
- storage-registry, which contains the classes for the Storage Registry service.
Each module has its own set of configuration files under the resources
folder:
- The
server.properties
file contains the configuration properties for the Storage Writer and Storage Reader services. - The
client.properties
file contains the configuration for the test and benchmark code.
mvn clean install
mvn package
cd storage-writer
mvn exec:java -Dexec.mainClass=net.modelbased.proasense.storage.writer.StorageWriterMongoService
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=net.modelbased.proasense.storage.writer.StorageWriterMongoServiceLocalBenchmark
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=net.modelbased.proasense.storage.writer.StorageWriterMongoServiceKafkaBenchmark
cd storage-reader
mvn jetty:run
cd storage-reader
mvn jetty:run
The client.properties
file contains the configuration for the test and benchmark code.
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=net.modelbased.proasense.storage.writer.StorageWriterServiceMongoLocalBenchmark
cd storage-reader
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=net.modelbased.proasense.storage.reader.StorageReaderMongoServiceLocalBenchmark
mvn exec:java -Dexec.classpathScope=test -Dexec.mainClass=net.modelbased.proasense.storage.writer.StorageWriterServiceMongoKafkaBenchmark
mvn clean install