Package com.atlassian.jira.issue.index
Class MockIndexDirectoryFactory
java.lang.Object
com.atlassian.jira.issue.index.MockIndexDirectoryFactory
- All Implemented Interfaces:
IndexDirectoryFactory,Supplier<Map<IndexDirectoryFactory.Name,Index.Manager>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.index.IndexDirectoryFactory
IndexDirectoryFactory.IndexPathAdapter, IndexDirectoryFactory.Name -
Constructor Summary
ConstructorsConstructorDescriptionMockIndexDirectoryFactory(Function<IndexDirectoryFactory.Name, org.apache.lucene.store.Directory> directorySupplier, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionget()Produce an object.voidsetIndexingMode(IndexingMode mode) Sets the Indexing Mode - one of either DIRECT or QUEUED.voidsetIndexRootPath(String rootPath)
-
Constructor Details
-
MockIndexDirectoryFactory
public MockIndexDirectoryFactory(Function<IndexDirectoryFactory.Name, org.apache.lucene.store.Directory> directorySupplier, ApplicationProperties applicationProperties)
-
-
Method Details
-
get
Description copied from interface:SupplierProduce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.- Specified by:
getin interfaceSupplier<Map<IndexDirectoryFactory.Name,Index.Manager>> - Returns:
- the product, may be null if there are no objects available.
-
getIndexPaths
- Specified by:
getIndexPathsin interfaceIndexDirectoryFactory
-
getIndexRootPath
- Specified by:
getIndexRootPathin interfaceIndexDirectoryFactory
-
setIndexRootPath
-
setIndexingMode
Description copied from interface:IndexDirectoryFactorySets the Indexing Mode - one of either DIRECT or QUEUED.- Specified by:
setIndexingModein interfaceIndexDirectoryFactory- Parameters:
mode- the indexing mode.
-