Package com.atlassian.jira.util.system
Class ExtendedSystemInfoUtilsImpl
java.lang.Object
com.atlassian.jira.util.system.ExtendedSystemInfoUtilsImpl
- All Implemented Interfaces:
ExtendedSystemInfoUtils
Implementation for the ExtendedSystemInfoUtils interface.
- Since:
- v3.13
-
Constructor Summary
ConstructorsModifierConstructorDescriptionExtendedSystemInfoUtilsImpl
(I18nHelper i18nHelper) protected
ExtendedSystemInfoUtilsImpl
(SystemInfoUtils systemInfoUtils, ServiceManager serviceManager, com.atlassian.plugin.PluginAccessor pluginAccessor, ApplicationProperties applicationProperties, TrustedApplicationService trustedAppService, OfBizDelegator ofBizDelegator, I18nHelper i18nHelper, HashRegistryCache registry, LocaleManager localeManager, Optional<JiraLicenseService> jiraLicenseServiceRef, BuildUtilsInfo buildUtilsInfo, Optional<UpgradeVersionHistoryManager> upgradeVersionHistoryManagerRef, JiraProperties jiraSystemProperties, ClusterManager clusterManager, JiraStartStopAnalyticHelper jiraStartStopAnalyticHelper, DatabaseLatencyMeter databaseLatencyMeter, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionFor each application property, display the key and its value.The common configuration properties that apply to this instance of JIRACollection<org.ofbiz.core.entity.GenericValue>
List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation>
long
getMillisecondsToMinutes
(long ms) Collection<com.atlassian.plugin.Plugin>
getProps()
Default is to hide sensitive system information (for the 500 page, etc.)getProps
(boolean showSensitiveInfo) protected String
getS3BackupPathForComponent
(BackupPathProvider backupPathProvider) getServicePropertyMap
(JiraServiceContainer serviceContainer) getSystemPropertiesFormatted
(String suffix) For each system properties, display the key and its value.getTrustedApplications
(JiraServiceContext jiraServiceContext) boolean
boolean
boolean
isPluginEnabled
(com.atlassian.plugin.Plugin plugin) boolean
Checks whether the default locale has been set or not.
-
Constructor Details
-
ExtendedSystemInfoUtilsImpl
protected ExtendedSystemInfoUtilsImpl(SystemInfoUtils systemInfoUtils, ServiceManager serviceManager, com.atlassian.plugin.PluginAccessor pluginAccessor, ApplicationProperties applicationProperties, TrustedApplicationService trustedAppService, OfBizDelegator ofBizDelegator, I18nHelper i18nHelper, HashRegistryCache registry, LocaleManager localeManager, Optional<JiraLicenseService> jiraLicenseServiceRef, BuildUtilsInfo buildUtilsInfo, Optional<UpgradeVersionHistoryManager> upgradeVersionHistoryManagerRef, JiraProperties jiraSystemProperties, ClusterManager clusterManager, JiraStartStopAnalyticHelper jiraStartStopAnalyticHelper, DatabaseLatencyMeter databaseLatencyMeter, FeatureManager featureManager) -
ExtendedSystemInfoUtilsImpl
-
-
Method Details
-
getSystemInfoUtils
- Specified by:
getSystemInfoUtils
in interfaceExtendedSystemInfoUtils
- Returns:
- the SystemInfoUtils object
-
getProps
Description copied from interface:ExtendedSystemInfoUtils
Default is to hide sensitive system information (for the 500 page, etc.)- Specified by:
getProps
in interfaceExtendedSystemInfoUtils
- Returns:
- an ordered map of system properties
-
getProps
- Specified by:
getProps
in interfaceExtendedSystemInfoUtils
- Parameters:
showSensitiveInfo
- Whether to include sensitive system information (e.g. database URL)- Returns:
- an ordered map of system properties
-
getApplicationPropertiesFormatted
Description copied from interface:ExtendedSystemInfoUtils
For each application property, display the key and its value. If the value is a path, then break the paths at semi colons ';' (For non-windows operatin systems, breaks on colon ':' as well). The break is accomplished by replacing the ';' or ':' with the suffix string argument- Specified by:
getApplicationPropertiesFormatted
in interfaceExtendedSystemInfoUtils
- Parameters:
suffix
- the string to add to the suffix of ';' and/or ':'- Returns:
- Map of system property keys to its value
-
getSystemPropertiesFormatted
Description copied from interface:ExtendedSystemInfoUtils
For each system properties, display the key and its value. If the value is a path, then break the paths at semi colons ';' (For non-windows operatin systems, breaks on colon ':' as well). The break is accomplished by replacing the ';' or ':' with the suffix string argument- Specified by:
getSystemPropertiesFormatted
in interfaceExtendedSystemInfoUtils
- Parameters:
suffix
- the string to add to the suffix of ';' and/or ':'- Returns:
- Map of system property keys to its value
-
getJvmStats
- Specified by:
getJvmStats
in interfaceExtendedSystemInfoUtils
- Returns:
- memory statistics for the JVM
-
getCommonConfigProperties
Description copied from interface:ExtendedSystemInfoUtils
The common configuration properties that apply to this instance of JIRA- Specified by:
getCommonConfigProperties
in interfaceExtendedSystemInfoUtils
- Returns:
- a Map of property names to
-
getMemoryPoolInformation
public List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()- Specified by:
getMemoryPoolInformation
in interfaceExtendedSystemInfoUtils
- Returns:
- memory pool statistics for the JVM
-
getBuildStats
- Specified by:
getBuildStats
in interfaceExtendedSystemInfoUtils
- Returns:
- information about the current build of JIRA
-
getUpgradeHistory
- Specified by:
getUpgradeHistory
in interfaceExtendedSystemInfoUtils
- Returns:
- information about the upgrade history of JIRA
-
getDefaultLanguage
- Specified by:
getDefaultLanguage
in interfaceExtendedSystemInfoUtils
- Returns:
- the default language set in the application's properties - rendered in the current user's locale
-
getBaseUrl
- Specified by:
getBaseUrl
in interfaceExtendedSystemInfoUtils
- Returns:
- the base URL of the application
-
isUsingSystemLocale
public boolean isUsingSystemLocale()Description copied from interface:ExtendedSystemInfoUtils
Checks whether the default locale has been set or not.- Specified by:
isUsingSystemLocale
in interfaceExtendedSystemInfoUtils
- Returns:
- true if default locale is set, false if using system locale
-
getUsageStats
- Specified by:
getUsageStats
in interfaceExtendedSystemInfoUtils
- Returns:
- usage statistics for the application (user counts, issue counts, etc)
-
getEntityEngineXmlPath
- Specified by:
getEntityEngineXmlPath
in interfaceExtendedSystemInfoUtils
- Returns:
- the path to the entityengine.xml file
-
getLogPath
- Specified by:
getLogPath
in interfaceExtendedSystemInfoUtils
- Returns:
- the path to the atlassian-jira.log file
-
getIndexLocation
- Specified by:
getIndexLocation
in interfaceExtendedSystemInfoUtils
- Returns:
- the path to the application's index file
-
getAttachmentsLocation
- Specified by:
getAttachmentsLocation
in interfaceExtendedSystemInfoUtils
- Returns:
- the path to the attachments directory
-
getBackupLocation
- Specified by:
getBackupLocation
in interfaceExtendedSystemInfoUtils
- Returns:
- the path to the backup directory
-
getJiraHomeLocation
- Specified by:
getJiraHomeLocation
in interfaceExtendedSystemInfoUtils
- Returns:
- the current configured location of shared JIRA Home
-
getJiraLocalHomeLocation
- Specified by:
getJiraLocalHomeLocation
in interfaceExtendedSystemInfoUtils
- Returns:
- the current configured location of local JIRA Home
-
getListeners
- Specified by:
getListeners
in interfaceExtendedSystemInfoUtils
- Returns:
- a collection of raw listener GVs
-
getServices
- Specified by:
getServices
in interfaceExtendedSystemInfoUtils
- Returns:
- a collection of JiraServiceContainers for each service
-
getServicePropertyMap
- Specified by:
getServicePropertyMap
in interfaceExtendedSystemInfoUtils
- Parameters:
serviceContainer
- the service object to obtain properties for- Returns:
- a map of properties relating to the service configuration
-
getMillisecondsToMinutes
public long getMillisecondsToMinutes(long ms) - Specified by:
getMillisecondsToMinutes
in interfaceExtendedSystemInfoUtils
- Parameters:
ms
- milliseconds- Returns:
- the number of minutes represented by the specified number of milliseconds
-
getPlugins
- Specified by:
getPlugins
in interfaceExtendedSystemInfoUtils
- Returns:
- a collection of plugins
-
isPluginEnabled
public boolean isPluginEnabled(com.atlassian.plugin.Plugin plugin) - Specified by:
isPluginEnabled
in interfaceExtendedSystemInfoUtils
- Parameters:
plugin
- the plugin- Returns:
- true if the plugin is currently enabled; false otherwise
-
getTrustedApplications
- Specified by:
getTrustedApplications
in interfaceExtendedSystemInfoUtils
- Parameters:
jiraServiceContext
- the JIRA service context- Returns:
- a set of TrustedApplicationInfo objects
-
getIPMatches
- Specified by:
getIPMatches
in interfaceExtendedSystemInfoUtils
- Parameters:
info
- the trusted application- Returns:
- the set of IP matches defined for this trusted app
-
getUrlMatches
- Specified by:
getUrlMatches
in interfaceExtendedSystemInfoUtils
- Parameters:
info
- the trusted application- Returns:
- the set of URL matches defined for this trusted app
-
isJvmWithPermGen
public boolean isJvmWithPermGen()- Specified by:
isJvmWithPermGen
in interfaceExtendedSystemInfoUtils
- Returns:
- true if using a JVM that has PermGen space, false if no PermGen available (typically JVM's after Java 1.7, 1.8 now use Metaspace).
-
getS3BackupPathForComponent
-
isClustered
public boolean isClustered()- Specified by:
isClustered
in interfaceExtendedSystemInfoUtils
- Returns:
- true if the instance is clustered.
-
getClusterNodeInformation
- Specified by:
getClusterNodeInformation
in interfaceExtendedSystemInfoUtils
- Returns:
- A map of cluster nodes mapped to their live status, i.e. are they heartbeating.
-