blob: cfe91e6c7d53fd93df04696aed65beec94e9c31a [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver
2jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb}
3dbuser=
4dbpassword=
5config.Table=configuration
6config.monitor.Table=configuration_change
7configKey=key
8configValue=value
9configNameColumn=name
10configdb=dox
ojasdubey29a456f2017-12-12 15:18:30 +053011dbhost=
AviZi280f8012017-06-09 02:39:56 +030012dbport=9042
13dbname=cassandra
14createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc)
15createmonitoringtablecql=create table if not exists ${configdb}.${config.monitor.Table} (name text\, changed_when bigint\, key text\, old_value text\, new_value text\, PRIMARY KEY (name\, changed_when)) with clustering order by (changed_when desc)
16insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?)
17fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=?
18fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1
19fetchnamescql=select distinct name from ${configdb}.${config.Table}
20config.size.max=100
21config.refresh.interval=30000
22event.fetch.delay=5000