AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 1 | driverClassName=com.github.adejanovski.cassandra.jdbc.CassandraDriver |
| 2 | jdbcURL=jdbc:${dbname}://${dbhost}:${dbport}/${configdb} |
| 3 | dbuser= |
| 4 | dbpassword= |
| 5 | config.Table=configuration |
| 6 | config.monitor.Table=configuration_change |
| 7 | configKey=key |
| 8 | configValue=value |
| 9 | configNameColumn=name |
| 10 | configdb=dox |
ojasdubey | 29a456f | 2017-12-12 15:18:30 +0530 | [diff] [blame] | 11 | dbhost= |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 12 | dbport=9042 |
| 13 | dbname=cassandra |
| 14 | createtablecql=create table if not exists ${configdb}.${config.Table} (name text\, key text\, value text\, PRIMARY KEY (name\, key)) with clustering order by (key asc) |
| 15 | createmonitoringtablecql=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) |
| 16 | insertconfigurationchangecql=insert into ${configdb}.${config.monitor.Table} (name\, changed_when\, key\, old_value\, new_value) values(?\, ?\, ?\, ?\, ?) |
| 17 | fetchkeysql=select ${configKey} from ${config.Table} where ${configNameColumn}=? |
| 18 | fetchlastchangecql=select changed_when from ${configdb}.${config.monitor.Table} where name=? limit 1 |
| 19 | fetchnamescql=select distinct name from ${configdb}.${config.Table} |
| 20 | config.size.max=100 |
| 21 | config.refresh.interval=30000 |
| 22 | event.fetch.delay=5000 |