OpenSearch/elasticsearch/x-pack/marvel
Alexander Reelsen 12ff8853f0 Monitoring/Watcher: Load version of templates in a static way (elastic/elasticsearch#2040)
The old implementation was to use properties at build-time. This however did not work,
as the tests could not be run in the IDE. This has been removed of monitoring for some
time already, but needs to be removed from watcher as well.

This commit uses static variables and refactors the code a bit. First, there is a generic
TemplateUtils class, to be used in monitoring and watcher. Also the watcher code has been changed
to copy the needed variables into the template registry class instead of keeping it in the
WatcherModule.

This commit also includes some refactoring to remove the version parameter in marvel, was static anyway

Closes elastic/elasticsearch#1372

Original commit: elastic/x-pack-elasticsearch@fbfc22ea09
2016-04-22 09:26:40 +02:00
..
src Monitoring/Watcher: Load version of templates in a static way (elastic/elasticsearch#2040) 2016-04-22 09:26:40 +02:00
LICENSE.txt Moved shield, watcher, marvel and license plugin into common x-pack 2015-12-03 16:24:40 +01:00
NOTICE.txt Moved shield, watcher, marvel and license plugin into common x-pack 2015-12-03 16:24:40 +01:00