public class

MockIndexDirectoryFactory

extends Object
implements IndexDirectoryFactory
java.lang.Object
   ↳ com.atlassian.jira.issue.index.MockIndexDirectoryFactory

Summary

Public Constructors
MockIndexDirectoryFactory(Function<IndexDirectoryFactory.NameDirectory> directorySupplier, ApplicationProperties applicationProperties)
Public Methods
Map<IndexDirectoryFactory.NameIndex.Manager> get()
Produce an object.
List<String> getIndexPaths()
String getIndexRootPath()
void setIndexRootPath(String rootPath)
void setIndexingMode(IndexingMode mode)
Sets the Indexing Mode - one of either DIRECT or QUEUED.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.index.IndexDirectoryFactory
From interface com.atlassian.jira.util.Supplier

Public Constructors

public MockIndexDirectoryFactory (Function<IndexDirectoryFactory.NameDirectory> directorySupplier, ApplicationProperties applicationProperties)

Public Methods

public Map<IndexDirectoryFactory.NameIndex.Manager> get ()

Produce an object. Retrieve an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.

Returns
  • the product, may be null if there are no objects available.

public List<String> getIndexPaths ()

public String getIndexRootPath ()

public void setIndexRootPath (String rootPath)

public void setIndexingMode (IndexingMode mode)

Sets the Indexing Mode - one of either DIRECT or QUEUED.

Parameters
mode the indexing mode.