public class


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


Public Constructors
MockIndexDirectoryFactory(Function<IndexDirectoryFactory.NameDirectory> directorySupplier)
Public Methods
Map<IndexDirectoryFactory.NameIndex.Manager> get()
Produce an object.
List<String> getIndexPaths()
String getIndexRootPath()
void setIndexRootPath(String rootPath)
void setIndexingMode(IndexDirectoryFactory.Mode mode)
Sets the Indexing Mode - one of either DIRECT or QUEUED.
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)

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.

  • 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 (IndexDirectoryFactory.Mode mode)

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

mode the indexing mode.