Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Client Side Measure

Alin Stefanescu edited this page Sep 12, 2017 · 8 revisions

Not all measures can be executed on server side. This is the case for example for direct measures which have to collect directly some data in physical world. To address this, the MEASURE Platform provide an Agent, deployed on client side which allows to execute standard measure on client.

Install Agent

  1. Download the last packaging of the Agent: https://github.com/ITEA3-Measure/MeasureAgent/releases
  2. On your client, unzip the agent and configure it by feeling the application.properties file.

Configure the Agent

Property Description
measure.repository.path Path of local directory containing measures
measure.server.adress Ip of MeasurePlatform Server
measure.agent.name Name of the Agent (Must be Unique)

Example :

measure.repository.path=/home/measure/storage           
measure.server.adress=xxx.xxx.xxx.xxx/measure                 
measure.agent.name= MyAgent

Build Agent

You can also build the agent directly from GitHub sources with Maven.

> mkdir ./measure-agent
> cd ./measure-agent
> git clone https://github.com/ITEA3-Measure/MeasureAgent.git
> mvn package

Deploy a Measure

During the comfiguration, you have define the path of the storage folder, a directory which will contain the measures deployed on your agent.

To deploy a measure :

  1. Unzip the packaged Measure
  2. Copy the unziped Measure on storage folder.

Expected Directory Organisation Example:

/agent/storage
/agent/storage/RandomGenerator
/agent/storage/RandomGenerator/RandomGenerator-1.0.0.jar
/agent/storage/RandomGenerator/MeasureMetadata.xml

Start Agent

java -jar measure-agent-1.0.0.jar

Collect Measures

Visualise Agent on Server Side

When an agent is started, it is automaticaly registred on the Measure Platform. The list of agents actually registered on the Measure Platform can be consulted on the "Platform > Remote Agent" page.

Visualise Available Measure

The measures deploy on agents can be visualise on the Measure Catalogue page like others measures deploy on server. The Host indicate the name of the agent which provide this measure.

Instantiate Client Side Measure

Similar server side measures, you have to create an instance of a client side measure in order to collect it.

The only differences to a server-side measure is that, at this time it is not possible to execute once a client-side measure. The client-side measure instance has to be scheduled.

Clone this wiki locally