org.elasticsearch.rest.RestModule Java Examples

The following examples show how to use org.elasticsearch.rest.RestModule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: S3RiverPlugin.java    From es-amazon-s3-river with Apache License 2.0 5 votes vote down vote up
@Override
public void processModule(Module module){
   if (module instanceof RiversModule){
      ((RiversModule) module).registerRiver("amazon-s3", S3RiverModule.class);
   }
   if (module instanceof RestModule) {
      ((RestModule) module).addRestAction(S3ManageAction.class);
   }
}
 
Example #2
Source File: InOutPlugin.java    From elasticsearch-inout-plugin with Apache License 2.0 5 votes vote down vote up
public void onModule(RestModule restModule) {
    restModule.addRestAction(RestExportAction.class);
    restModule.addRestAction(RestImportAction.class);
    restModule.addRestAction(RestSearchIntoAction.class);
    restModule.addRestAction(RestDumpAction.class);
    restModule.addRestAction(RestRestoreAction.class);
    restModule.addRestAction(RestReindexAction.class);
}
 
Example #3
Source File: AdminUIPlugin.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule restModule) {
    restModule.addRestAction(AdminUIFrontpageAction.class);
}
 
Example #4
Source File: SQLPlugin.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule restModule) {
    restModule.addRestAction(RestSQLAction.class);
}
 
Example #5
Source File: CrateCorePlugin.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule restModule) {
    restModule.addRestAction(CrateRestMainAction.class);
}
 
Example #6
Source File: SirenJoinPlugin.java    From siren-join with GNU Affero General Public License v3.0 4 votes vote down vote up
public void onModule(RestModule module) {
  module.addRestAction(RestCoordinateSearchAction.class);
  module.addRestAction(RestCoordinateMultiSearchAction.class);
  module.addRestAction(RestClearFilterJoinCacheAction.class);
  module.addRestAction(RestStatsFilterJoinCacheAction.class);
}
 
Example #7
Source File: KerberosRealmPlugin.java    From elasticsearch-shield-kerberos-realm with Apache License 2.0 4 votes vote down vote up
public void onModule(final RestModule module) {
    if (!client) {
        module.addRestAction(LoginInfoRestAction.class);
    }
}
 
Example #8
Source File: CSVPlugin.java    From elasticsearch-csv with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule module) {
    if (settings.getAsBoolean("plugins.csv.enabled", true)) {
        module.addRestAction(CSVRestSearchAction.class);
    }
}
 
Example #9
Source File: TastePlugin.java    From elasticsearch-taste with Apache License 2.0 4 votes vote down vote up
public void onModule(final RestModule module) {
    module.addRestAction(TasteEventRestAction.class);
    module.addRestAction(TasteSearchRestAction.class);
    module.addRestAction(TasteActionRestAction.class);
}
 
Example #10
Source File: GathererPlugin.java    From elasticsearch-gatherer with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule module) {
    module.addRestAction(RestDeployAction.class);
    module.addRestAction(RestGathererAction.class);
}
 
Example #11
Source File: HelperPlugin.java    From elasticsearch-helper with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule module) {
    module.addRestAction(RestIngestAction.class);
}
 
Example #12
Source File: AuthPlugin.java    From elasticsearch-auth with Apache License 2.0 4 votes vote down vote up
public void onModule(final RestModule module) {
    module.addRestAction(AccountRestAction.class);
    module.addRestAction(ReloadRestAction.class);
}
 
Example #13
Source File: ExtendedAnalyzePlugin.java    From elasticsearch-extended-analyze with Apache License 2.0 4 votes vote down vote up
public void onModule(RestModule restModule) {
    restModule.addRestAction(RestExtendedAnalyzeAction.class);
}
 
Example #14
Source File: ReindexingPlugin.java    From elasticsearch-reindexing with Apache License 2.0 2 votes vote down vote up
/**
 * extend the given module
 * @param module
 */
public void onModule(final RestModule module) {
    module.addRestAction(ReindexRestAction.class);
}