Package com.atlassian.jira.config.util
Interface JiraHome
- All Known Implementing Classes:
AbstractJiraHome,DefaultJiraHome,JiraHomeLocator.SystemJiraHome,MockJiraHome,SecondaryJiraHome,StartupJiraHome
public interface JiraHome
Get the location of JIRA's home directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the "Caching" directory in JIRA home.static final StringName of the "Data" directory in JIRA home.static final StringName of the "Export" directory in JIRA home.static final StringName of the "Export/Backups" directory in JIRA home.static final StringName of the "Import" directory in JIRA home.static final StringName of the "Import/Attachments" directory in JIRA home.static final Stringstatic final Stringstatic final StringName of the "Log" directory in JIRA home.static final StringName of the "Plugins" directory in JIRA home.Deprecated.since v6.1 -
Method Summary
Modifier and TypeMethodDescriptionGet theFileobject representing the caches directory in JIRA home.Get theFileobject representing the data directory in JIRA home.Get theFileobject representing the export/backups directory in JIRA home.Get theFileobject representing the export directory in JIRA home.getHome()Get theFileobject representing the JIRA home directory.Get the canonical path to the JIRA home directory.Get theFileobject representing the import/attachments directory in JIRA home.Get theFileobject representing the import directory in JIRA home.Get theFileobject representing the index snapshots directory in JIRA home.Get theFileobject representing the JIRA local home directory.Get the canonical path to the JIRA local home directory.Get theFileobject representing the log directory in JIRA home.Get theFileobject representing the plugins directory in JIRA home.Get theFileobject representing the caches directory in JIRA home.
-
Field Details
-
CACHES
Name of the "Caching" directory in JIRA home.- See Also:
-
DATA
Name of the "Data" directory in JIRA home.- See Also:
-
PLUGINS
Name of the "Plugins" directory in JIRA home.- See Also:
-
EXPORT
Name of the "Export" directory in JIRA home.- See Also:
-
EXPORT_BACKUPS
Name of the "Export/Backups" directory in JIRA home.- See Also:
-
IMPORT
Name of the "Import" directory in JIRA home.- See Also:
-
IMPORT_ATTACHMENTS
Name of the "Import/Attachments" directory in JIRA home.- See Also:
-
INDEXES_DIR
-
INDEX_SNAPSHOTS
-
LOG
Name of the "Log" directory in JIRA home.- See Also:
-
subdirs
Deprecated.since v6.1 -
localsubdirs
-
-
Method Details
-
getHomePath
String getHomePath()Get the canonical path to the JIRA home directory.- Returns:
- the String path
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getHome
Get theFileobject representing the JIRA home directory.- Returns:
- the file path, must be a directory
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getLocalHome
Get theFileobject representing the JIRA local home directory. In a clustered or HA deployment this will be different from jira.home, but in a standalone installation will generally be the same as jira.home.- Returns:
- the file path, must be a directory
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getLocalHomePath
String getLocalHomePath()Get the canonical path to the JIRA local home directory. In a clustered or HA deployment this will be different from jira.home, but in a standalone installation will generally be the same as jira.home.- Returns:
- the String path
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getLogDirectory
File getLogDirectory()Get theFileobject representing the log directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getCachesDirectory
File getCachesDirectory()Get theFileobject representing the caches directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getExportDirectory
File getExportDirectory()Get theFileobject representing the export directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getExportBackupsDirectory
File getExportBackupsDirectory()Get theFileobject representing the export/backups directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getImportDirectory
File getImportDirectory()Get theFileobject representing the import directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getImportAttachmentsDirectory
File getImportAttachmentsDirectory()Get theFileobject representing the import/attachments directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getPluginsDirectory
File getPluginsDirectory()Get theFileobject representing the plugins directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getDataDirectory
File getDataDirectory()Get theFileobject representing the data directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-
getIndexSnapshotsDirectory
File getIndexSnapshotsDirectory()Get theFileobject representing the index snapshots directory in JIRA home.- Returns:
- the file path, must be a directory.
- Throws:
IllegalStateException- if the JIRA home is not set.
-