OpenSearch/elasticsearch
Alexander Reelsen b57c4f6ebe Watcher: Remove in memory watch store (elastic/elasticsearch#4201)
In order to prepare to the distributed watch execution, this commit
removes the in memory watch store.

Whenever a watch is needed now, a get request is executed and the parsing
is done. This happens when

* Put
* Get
* Ack
* Activate/Deactivate
* Execute

Note: This also means there are no usage stats currently regarding
the watch count, because we would need to execute a query. This would
require the usage stats to be async, see elastic/elasticsearch#3569

Another advantage is, that there is no dirty flag in the watch itself
needed anymore, because the watch is always the latest. Also write
operations store immediately and dont leave anything in memory.

Also ActionListener.wrap() was used a lot instead of more verbose anonmyous
inner classes.

Original commit: elastic/x-pack-elasticsearch@c47465b47c
2016-12-13 08:54:03 +01:00
..
bin/x-pack Build: Reorganize src roots 2016-10-01 09:46:43 +02:00
config/x-pack Build: Reorganize src roots 2016-10-01 09:46:43 +02:00
keys Collapsed license code into xpack src 2016-09-29 12:22:19 +02:00
src Watcher: Remove in memory watch store (elastic/elasticsearch#4201) 2016-12-13 08:54:03 +01:00
NOTICE.txt Moved directories around 2016-09-29 12:03:14 +02:00
build.gradle Watcher: Remove mock web server from square (elastic/elasticsearch#4221) 2016-12-09 09:07:09 +01:00