コード例 #1
0
 /* Invoked on component assembly. */
 public void onModule(ActionModule actionModule) {
   if (pluginEnabled) {
     actionModule.registerAction(ClusteringAction.INSTANCE, TransportClusteringAction.class);
     actionModule.registerAction(
         ListAlgorithmsAction.INSTANCE, ListAlgorithmsAction.TransportListAlgorithmsAction.class);
   }
 }
コード例 #2
0
 @Override
 public void processModule(Module module) {
   if (module instanceof FacetModule) {
     ((FacetModule) module).addFacetProcessor(FacetedDateHistogramFacetProcessor.class);
     ((FacetModule) module).addFacetProcessor(HashedStringFacetProcessor.class);
   }
   if (module instanceof ActionModule) {
     ((ActionModule) module)
         .registerAction(
             CacheStatsPerFieldAction.INSTANCE, TransportCacheStatsPerFieldAction.class);
   }
   if (module instanceof RestModule) {
     ((RestModule) module).addRestAction(RestCacheStatsPerFieldAction.class);
   }
 }
コード例 #3
0
 public void onModule(ActionModule module) {
   module.registerAction(TestTaskAction.INSTANCE, TransportTestTaskAction.class);
   module.registerAction(UnblockTestTasksAction.INSTANCE, TransportUnblockTestTasksAction.class);
 }
コード例 #4
0
 public void onModule(ActionModule module) {
   module.registerAction(IngestAction.INSTANCE, TransportIngestAction.class);
 }