Class IndexModule

java.lang.Object
com.google.inject.AbstractModule
com.google.gerrit.extensions.config.FactoryModule
com.google.gerrit.lifecycle.LifecycleModule
com.google.gerrit.server.index.IndexModule
All Implemented Interfaces:
com.google.inject.Module

public class IndexModule extends com.google.gerrit.lifecycle.LifecycleModule
Module for non-indexer-specific secondary index setup.

This module should not be used directly except by specific secondary indexer implementations (e.g. Lucene).

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.google.common.collect.ImmutableCollection<SchemaDefinitions<?>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexModule(int threads, boolean slave)
     
    IndexModule(com.google.common.util.concurrent.ListeningExecutorService interactiveExecutor, com.google.common.util.concurrent.ListeningExecutorService batchExecutor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    static IndexType
    getIndexType(com.google.inject.Injector injector)
    Type of secondary index.

    Methods inherited from class com.google.gerrit.lifecycle.LifecycleModule

    listener

    Methods inherited from class com.google.gerrit.extensions.config.FactoryModule

    factory

    Methods inherited from class com.google.inject.AbstractModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ALL_SCHEMA_DEFS

      public static final com.google.common.collect.ImmutableCollection<SchemaDefinitions<?>> ALL_SCHEMA_DEFS
  • Constructor Details

    • IndexModule

      public IndexModule(int threads, boolean slave)
    • IndexModule

      public IndexModule(com.google.common.util.concurrent.ListeningExecutorService interactiveExecutor, com.google.common.util.concurrent.ListeningExecutorService batchExecutor)
  • Method Details

    • getIndexType

      public static IndexType getIndexType(com.google.inject.Injector injector)
      Type of secondary index.
    • configure

      protected void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule