@PublicApi public interface

IndexPathManager

com.atlassian.jira.config.util.IndexPathManager
Known Indirect Subclasses

@PublicApi

This interface is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Responsible for determining the current location of JIRA indexes.

Summary

Nested Classes
class IndexPathManager.Directory  
enum IndexPathManager.Mode  
class IndexPathManager.PropertiesAdaptor Implementation of IndexPathManager that uses the ApplicationProperties to get the current paths. 
Fields
public static final String INDEXES_DIR
Public Methods
String getChangeHistoryIndexPath()
Returns the path of JIRA's change history indexes.
String getCommentIndexPath()
Returns the path of JIRA's comment indexes.
String getDefaultIndexRootPath()
This returns the root index directory that JIRA will use by default, if it is configured to do so.
String getIndexRootPath()
Returns the root path of JIRA's indexes.
String getIssueIndexPath()
Returns the path of JIRA's issue indexes.
IndexPathManager.Mode getMode()
String getPluginIndexRootPath()
Returns the root path of JIRA's plugin indexes.
String getSharedEntityIndexPath()
Returns the path of JIRA's shared entity indexes.
boolean getUseDefaultDirectory()
Whether we are using the default index directory (within JIRA Home).
String getWorklogIndexPath()
Returns the path of JIRA's worklog indexes
void setIndexRootPath(String indexPath)
Specify an explicit index root path.
void setUseDefaultDirectory()
Specify that the default location within JIRA Home should be used to store indexes.

Fields

public static final String INDEXES_DIR

Public Methods

public String getChangeHistoryIndexPath ()

Returns the path of JIRA's change history indexes.

Returns
  • the path of JIRA's change history indexes

public String getCommentIndexPath ()

Returns the path of JIRA's comment indexes.

Returns
  • the path of JIRA's comment indexes

public String getDefaultIndexRootPath ()

This returns the root index directory that JIRA will use by default, if it is configured to do so. This directory is a sub-directory of the configured jira-home and is defined in the Atlassian home directory specification to live under [jira-home]/caches/indexes/.

Returns
  • the default root index path

public String getIndexRootPath ()

Returns the root path of JIRA's indexes. If JIRA is configured to "Use the Default Index Directory", then the absolute path of that default directory is returned.

Returns
  • the root path of JIRA's indexes

public String getIssueIndexPath ()

Returns the path of JIRA's issue indexes.

Returns
  • the path of JIRA's issue indexes

public IndexPathManager.Mode getMode ()

public String getPluginIndexRootPath ()

Returns the root path of JIRA's plugin indexes.

NOTE: Each Plugin should create a new directory under this path

Returns
  • the root path of JIRA's plugin indexes

public String getSharedEntityIndexPath ()

Returns the path of JIRA's shared entity indexes.

Returns
  • the path of JIRA's shared entity indexes

public boolean getUseDefaultDirectory ()

Whether we are using the default index directory (within JIRA Home).

Returns
  • true if we are using the default index directory (within JIRA Home).

public String getWorklogIndexPath ()

Returns the path of JIRA's worklog indexes

Returns
  • the path of JIRA's worklog indexes

public void setIndexRootPath (String indexPath)

Specify an explicit index root path.

Parameters
indexPath the path to use

public void setUseDefaultDirectory ()

Specify that the default location within JIRA Home should be used to store indexes.