Hegira 4Clouds REST API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.classpath
.gitignore
.project
APACHE-2-header.txt
LICENSE.txt
README.md
pom.xml

README.md

hegira-api

Hegira 4Clouds REST API

Installation

Configuration

After having downloaded the source code two new files should be created under the folder src/main/webapp/WEB-INF/classes:

  • queue.properties
  • zookeeper.properties
queue.properties

Contains the properties to configure RabbitMQ. Currently, the only needed property is the ip address of the broker:

host=<ip_address>
zookeeper.properties

Contains the properties to configure ZooKeeper. Currently, the only needed property is the ip address and the port of one of the ZooKeeper installation:

connectString=<ip_address>:<port>
Build

The project is Maven compliant, hence by executing the command mvn clean package the proper packages will be created.

Deploy

Maven generates a war archive (containing all the necessary dependencies) which should be copied in webapps Tomcat folder. After having started Tomcat, hegira-api component should be available at: http://<tomcat-address>:<port>/<war_package_name>

Usage

Rest API are described at: http://deib-polimi.github.io/hegira-api/.

In particular, Rest API for data migration are described here.

hegira-api component also exposes a set of Rest API on top of Apache ZooKeeper, in order to allow PaaS applications to:

  1. request new unique ids that allow Hegira 4Clouds to synchronize data across two databases.
  2. Check the synchronization status.

The same services are obtainable by IaaS applications by means of zkWrapper-client library.

##License##

Licensed under the Apache License, Version 2.0