public class MockIndexDirectoryFactory extends Object implements IndexDirectoryFactory
IndexDirectoryFactory.IndexPathAdapter, IndexDirectoryFactory.Name
Constructor and Description |
---|
MockIndexDirectoryFactory(Function<IndexDirectoryFactory.Name,org.apache.lucene.store.Directory> directorySupplier,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
Map<IndexDirectoryFactory.Name,Index.Manager> |
get()
Produce an object.
|
List<String> |
getIndexPaths() |
String |
getIndexRootPath() |
void |
setIndexingMode(IndexingMode mode)
Sets the Indexing Mode - one of either DIRECT or QUEUED.
|
void |
setIndexRootPath(String rootPath) |
public MockIndexDirectoryFactory(Function<IndexDirectoryFactory.Name,org.apache.lucene.store.Directory> directorySupplier, ApplicationProperties applicationProperties)
public Map<IndexDirectoryFactory.Name,Index.Manager> get()
Supplier
get
in interface Supplier<Map<IndexDirectoryFactory.Name,Index.Manager>>
public List<String> getIndexPaths()
getIndexPaths
in interface IndexDirectoryFactory
public String getIndexRootPath()
getIndexRootPath
in interface IndexDirectoryFactory
public void setIndexRootPath(String rootPath)
public void setIndexingMode(@Nonnull IndexingMode mode)
IndexDirectoryFactory
setIndexingMode
in interface IndexDirectoryFactory
mode
- the indexing mode.Copyright © 2002-2021 Atlassian. All Rights Reserved.
View cookie preferences