sentilo-agent-relational/src/main/resources/properties/sentilo-agent-relational.conf
#-------------------------------------------------------------------------------
# Sentilo
#
# Original version 1.4 Copyright (C) 2013 Institut Municipal d’Informà tica, Ajuntament de Barcelona.
# Modified by Opentrends adding support for multitenant deployments and SaaS. Modifications on version 1.5 Copyright (C) 2015 Opentrends Solucions i Sistemes, S.L.
#
#
# This program is licensed and may be used, modified and redistributed under the
# terms of the European Public License (EUPL), either version 1.1 or (at your
# option) any later version as soon as they are approved by the European
# Commission.
#
# Alternatively, you may redistribute and/or modify this program under the terms
# of the GNU Lesser General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied.
#
# See the licenses for the specific language governing permissions, limitations
# and more details.
#
# You should have received a copy of the EUPL1.1 and the LGPLv3 licenses along
# with this program; if not, you may find them at:
#
# https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
# http://www.gnu.org/licenses/
# and
# https://www.gnu.org/licenses/lgpl.txt
#-------------------------------------------------------------------------------
##############################################################################################
# This file allows configuring the parameters needed to configure the agent.
##############################################################################################
#Table prefix for the Sentilo tables in the relational server repository
sentilo.agent.relational.tables.prefix=sentilo
#Properties to configure the datasource sentiloDs
sentilo.agent.relational.ds.jdbc.driverClassName=com.mysql.jdbc.Driver
sentilo.agent.relational.ds.url=jdbc:mysql://127.0.0.1:3306/sentilo
sentilo.agent.relational.ds.username=sentilo_user
sentilo.agent.relational.ds.password=sentilo_pwd
sentilo.agent.relational.ds.validationQuery=Select 1
sentilo.agent.relational.ds.initialSize=1
sentilo.agent.relational.ds.minIdle=1
sentilo.agent.relational.ds.maxIdle=10
sentilo.agent.relational.ds.maxActive=10
sentilo.agent.relational.ds.maxWait=30000
sentilo.agent.relational.ds.testOnConnect=true
sentilo.agent.relational.ds.testOnBorrow=true
sentilo.agent.relational.ds.testWhileIdle=true
sentilo.agent.relational.ds.timeBetweenEvictionRunsMillis=10000
sentilo.agent.relational.ds.validationInterval=30000
sentilo.mongodb.application-name=sentilo-agent-relational
#######################################################################################################################################
# This property allows configuring which Sentilo's events must be persisted in relational server
#
# subscriptions=topic1,topic2,...,topicN
#
# where each topic must follow the following pattern: /{eventType}/{resourceId}, with:
# + eventType must be one of the following values: data, alarm or order
# + resourceId could be any of the following listed below:
# - *, if you want to subscribe to all the events of this type
# - providerId/*, if you want to subscribe only to events from the provider {providerId}
# - providerId/sensorId if you only want to subscribe to events related to the sensor {sensorId} from the provider {providerId}
# - alertId if you only want to subscribe to alarms associated with the alert {alertId}.
#
#######################################################################################################################################
subscriptions=/data/*,/alarm/*,/order/*