From b799b7a9d78ebd43bc2f00c9c594df930ae7400b Mon Sep 17 00:00:00 2001 From: kimchy Date: Sat, 27 Mar 2010 23:43:59 +0300 Subject: [PATCH] plugins support + start work on attachments plugin --- .idea/dictionaries/kimchy.xml | 1 + .idea/libraries/tika.xml | 9 + .idea/modules.xml | 1 + .idea/modules/elasticsearch-root.iml | 1 + .idea/modules/plugin-attachments.iml | 18 ++ .idea/runConfigurations/Bootstrap.xml | 2 +- .../Bootstrap__No_Plugins_.xml | 28 ++ build.gradle | 3 +- .../org/elasticsearch/env/Environment.java | 25 +- .../index/IndexServiceManagement.java | 3 +- .../index/analysis/AnalysisService.java | 3 +- .../index/cache/filter/FilterCache.java | 5 +- .../elasticsearch/index/engine/Engine.java | 5 +- .../index/gateway/IndexGateway.java | 8 +- .../gateway/IndexShardGatewayService.java | 3 +- .../index/service/InternalIndexService.java | 13 + .../index/shard/IndexShardManagement.java | 3 +- .../index/shard/recovery/RecoveryAction.java | 3 +- .../index/shard/service/IndexShard.java | 5 +- .../indices/InternalIndicesService.java | 12 + .../elasticsearch/plugins/AbstractPlugin.java | 57 ++++ .../plugins/IndicesPluginsModule.java | 50 ++++ .../org/elasticsearch/plugins/Plugin.java | 46 +++ .../elasticsearch/plugins/PluginsModule.java | 52 ++++ .../elasticsearch/plugins/PluginsService.java | 278 ++++++++++++++++++ .../plugins/ShardsPluginsModule.java | 50 ++++ .../server/internal/InternalServer.java | 26 +- .../component/AbstractLifecycleComponent.java | 31 ++ .../util/component/LifecycleComponent.java | 4 + .../util/component/LifecycleListener.java | 38 +++ plugins/attachments/build.gradle | 74 +++++ .../src/main/java/es-plugin.properties | 1 + .../plugin/attachments/AttachmentsPlugin.java | 32 ++ settings.gradle | 8 +- 34 files changed, 871 insertions(+), 27 deletions(-) create mode 100644 .idea/libraries/tika.xml create mode 100644 .idea/modules/plugin-attachments.iml create mode 100644 .idea/runConfigurations/Bootstrap__No_Plugins_.xml create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/AbstractPlugin.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/IndicesPluginsModule.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/Plugin.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsModule.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/PluginsService.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/plugins/ShardsPluginsModule.java create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/util/component/LifecycleListener.java create mode 100644 plugins/attachments/build.gradle create mode 100644 plugins/attachments/src/main/java/es-plugin.properties create mode 100644 plugins/attachments/src/main/java/org/elasticsearch/plugin/attachments/AttachmentsPlugin.java diff --git a/.idea/dictionaries/kimchy.xml b/.idea/dictionaries/kimchy.xml index 5fabd40bba2..29f7590e1e0 100644 --- a/.idea/dictionaries/kimchy.xml +++ b/.idea/dictionaries/kimchy.xml @@ -40,6 +40,7 @@ ngram param params + plugins porterstem rebalance searchable diff --git a/.idea/libraries/tika.xml b/.idea/libraries/tika.xml new file mode 100644 index 00000000000..dbbb3d0c04b --- /dev/null +++ b/.idea/libraries/tika.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 8da55ea3b4f..eca5d07735d 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -5,6 +5,7 @@ + diff --git a/.idea/modules/elasticsearch-root.iml b/.idea/modules/elasticsearch-root.iml index 4511acc6661..0e40769cd9e 100644 --- a/.idea/modules/elasticsearch-root.iml +++ b/.idea/modules/elasticsearch-root.iml @@ -13,6 +13,7 @@ + diff --git a/.idea/modules/plugin-attachments.iml b/.idea/modules/plugin-attachments.iml new file mode 100644 index 00000000000..4419a6f3b30 --- /dev/null +++ b/.idea/modules/plugin-attachments.iml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/.idea/runConfigurations/Bootstrap.xml b/.idea/runConfigurations/Bootstrap.xml index 6d8c9d38e12..5d3247d8fd2 100644 --- a/.idea/runConfigurations/Bootstrap.xml +++ b/.idea/runConfigurations/Bootstrap.xml @@ -16,7 +16,7 @@