public class SecondaryJiraHome extends AbstractJiraHome
CACHES, DATA, EXPORT, EXPORT_BACKUPS, IMPORT, IMPORT_ATTACHMENTS, INDEX_SNAPSHOTS, INDEXES_DIR, localsubdirs, LOG, PLUGINS, sharedsubdirs, subdirs
Constructor and Description |
---|
SecondaryJiraHome(JiraHome jirahome,
ApplicationProperties applicationProperties,
ClusterManager clusterManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
applySettings(boolean attachments,
boolean plugins,
boolean indexSnapshots,
boolean avatars)
Applies all the settings for the replication home
|
String |
getDefaultPath()
We map the second default path inside the Jira Home because
if you are in a cluster this is the shared home and it is already mapped in all the instances
We also keep the same structure as the default Jira Home to be able to use this location as primary
in disaster recovery
|
File |
getLocalHome()
Get the
File object representing the JIRA local home directory. |
boolean |
isEnabled() |
protected void |
refreshLocation(boolean isEnabled)
We refresh the location, we do this to only enable this if the feature is enabled.
|
void |
setEnabled(boolean value) |
getCachesDirectory, getDataDirectory, getExportBackupsDirectory, getExportDirectory, getHome, getHomePath, getImportAttachmentsDirectory, getImportDirectory, getIndexSnapshotsDirectory, getLocalHomePath, getLogDirectory, getPluginsDirectory, getSharedCachesDirectory
public SecondaryJiraHome(JiraHome jirahome, ApplicationProperties applicationProperties, ClusterManager clusterManager, com.atlassian.event.api.EventPublisher eventPublisher)
@Nonnull public File getLocalHome()
JiraHome
File
object 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.public String getDefaultPath()
public void setEnabled(boolean value)
public boolean isEnabled()
public void applySettings(boolean attachments, boolean plugins, boolean indexSnapshots, boolean avatars)
attachments
- attachments enabledplugins
- plugins enabledindexSnapshots
- index snapshot enabledavatars
- avatars enabledprotected void refreshLocation(boolean isEnabled)
Copyright © 2002-2024 Atlassian. All Rights Reserved.