To refer or cite this work, please use this reference: L. Belcastro, F. Marozzo, P. Trunfio, "A Scalable Middleware for Context-aware Mobile Applications". International Journal of Ad Hoc and Ubiquitous Computing, 2017. Reference to paper
A core functionality of context-aware mobile applications is storing, indexing, and retrieving information about users, places, events and other resources. The goal of this work is to design and provide a service-oriented middleware, called Geocon, which can be used by mobile developers to implement such functionality. To represent information about users, places, events and resources of context-aware applications, Geocon defines a metadata model that can be extended to match specific application requirements. The middleware includes a geocon-service for storing, searching and selecting metadata about users, resources, events and places of interest, and a geocon-client library that allows mobile applications to interact with the service through the invocation of local methods. The paper describes the Geocon middleware and presents an experimental evaluation of its scalability on a cloud platform with a real-world mobile application. Abstract
1. In elasticsearch-x.x.x/config/elasticsearch.yml , set a name for your cluster (remember to uncomment the line deleting #) 1.2. It's strongly recommended to customize the .yml config file. For example, if you're planning to use Elasticsearch on a single machine, you could disable redundancy (saving disk space). For further information, please refer to Elasticsearch documentation. 2. In the root directory, customize the "config.properties" file. Feel free to customize the others fields :) NOTE: field "cluster_name" and the cluster name you set at 1 have to be the same Configuring Elasticsearch, names and variables:
PREREQUISITE for all users: you have JDK7 installed and JAVA_HOME as system variable set. Run elasticsearch cluster:
1. Using a terminal, enter in elasticsearch-x.x.x/bin/ 2. Type "./elasticsearch" without quotes and press return 3. You're now running a fully working Elasticsearch cluster! 4. Keep this window opened until you want to use the web service. *NIX Users:
1. Double click on elasticsearch.bat located in elasticsearch-x.x.x/bin/ 2. Done! Windows Users:
Fill the Elasticsearch db with example data:
- With a terminal, enter in the root directory and type "java -jar geocon.jar fill" without quotes and press return.
- Follow on screen instructions.
Run the Web service:
- With a terminal, enter in the root directory and type "java -jar geocon.jar" without quotes and press return.
- The Web service is now connected to Elasticsearch database.
Try the Web service: (consigliare applicazione - interazione'85)
Install Marvel plug-in for Elasticsearch. Marvel is a management and monitoring product for Elasticsearch. Marvel aggregates cluster wide statistics and events andoffers a single interface to view and analyze them. Marvel is free for development use but does require a license to run in production. EXTRAS:
From the Elasticsearch home directory, run: bin/plugin -i elasticsearch/marvel/latest
For other informations: http://www.elastic.co/guide/en/marvel/current/_installation.html\