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) protectedExtendedSystemInfoUtilsImpl(SystemInfoUtils systemInfoUtils, ServiceManager serviceManager, com.atlassian.plugin.PluginAccessor pluginAccessor, ApplicationProperties applicationProperties, 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> longgetMillisecondsToMinutes(long ms) Collection<com.atlassian.plugin.Plugin> getProps()Default is to hide sensitive system information (for the 500 page, etc.)getProps(boolean showSensitiveInfo) protected StringgetS3BackupPathForComponent(BackupPathProvider backupPathProvider) getServicePropertyMap(JiraServiceContainer serviceContainer) getSystemPropertiesFormatted(String suffix) For each system properties, display the key and its value.booleanbooleanbooleanisPluginEnabled(com.atlassian.plugin.Plugin plugin) booleanChecks 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, 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:
getSystemInfoUtilsin interfaceExtendedSystemInfoUtils- Returns:
- the SystemInfoUtils object
-
getProps
Description copied from interface:ExtendedSystemInfoUtilsDefault is to hide sensitive system information (for the 500 page, etc.)- Specified by:
getPropsin interfaceExtendedSystemInfoUtils- Returns:
- an ordered map of system properties
-
getProps
- Specified by:
getPropsin 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:ExtendedSystemInfoUtilsFor 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:
getApplicationPropertiesFormattedin 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:ExtendedSystemInfoUtilsFor 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:
getSystemPropertiesFormattedin 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:
getJvmStatsin interfaceExtendedSystemInfoUtils- Returns:
- memory statistics for the JVM
-
getCommonConfigProperties
Description copied from interface:ExtendedSystemInfoUtilsThe common configuration properties that apply to this instance of JIRA- Specified by:
getCommonConfigPropertiesin interfaceExtendedSystemInfoUtils- Returns:
- a Map of property names to
-
getMemoryPoolInformation
public List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()- Specified by:
getMemoryPoolInformationin interfaceExtendedSystemInfoUtils- Returns:
- memory pool statistics for the JVM
-
getBuildStats
- Specified by:
getBuildStatsin interfaceExtendedSystemInfoUtils- Returns:
- information about the current build of JIRA
-
getUpgradeHistory
- Specified by:
getUpgradeHistoryin interfaceExtendedSystemInfoUtils- Returns:
- information about the upgrade history of JIRA
-
getDefaultLanguage
- Specified by:
getDefaultLanguagein interfaceExtendedSystemInfoUtils- Returns:
- the default language set in the application's properties - rendered in the current user's locale
-
getBaseUrl
- Specified by:
getBaseUrlin interfaceExtendedSystemInfoUtils- Returns:
- the base URL of the application
-
isUsingSystemLocale
public boolean isUsingSystemLocale()Description copied from interface:ExtendedSystemInfoUtilsChecks whether the default locale has been set or not.- Specified by:
isUsingSystemLocalein interfaceExtendedSystemInfoUtils- Returns:
- true if default locale is set, false if using system locale
-
getUsageStats
- Specified by:
getUsageStatsin interfaceExtendedSystemInfoUtils- Returns:
- usage statistics for the application (user counts, issue counts, etc)
-
getEntityEngineXmlPath
- Specified by:
getEntityEngineXmlPathin interfaceExtendedSystemInfoUtils- Returns:
- the path to the entityengine.xml file
-
getLogPath
- Specified by:
getLogPathin interfaceExtendedSystemInfoUtils- Returns:
- the path to the atlassian-jira.log file
-
getIndexLocation
- Specified by:
getIndexLocationin interfaceExtendedSystemInfoUtils- Returns:
- the path to the application's index file
-
getAttachmentsLocation
- Specified by:
getAttachmentsLocationin interfaceExtendedSystemInfoUtils- Returns:
- the path to the attachments directory
-
getBackupLocation
- Specified by:
getBackupLocationin interfaceExtendedSystemInfoUtils- Returns:
- the path to the backup directory
-
getJiraHomeLocation
- Specified by:
getJiraHomeLocationin interfaceExtendedSystemInfoUtils- Returns:
- the current configured location of shared JIRA Home
-
getJiraLocalHomeLocation
- Specified by:
getJiraLocalHomeLocationin interfaceExtendedSystemInfoUtils- Returns:
- the current configured location of local JIRA Home
-
getListeners
- Specified by:
getListenersin interfaceExtendedSystemInfoUtils- Returns:
- a collection of raw listener GVs
-
getServices
- Specified by:
getServicesin interfaceExtendedSystemInfoUtils- Returns:
- a collection of JiraServiceContainers for each service
-
getServicePropertyMap
- Specified by:
getServicePropertyMapin 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:
getMillisecondsToMinutesin interfaceExtendedSystemInfoUtils- Parameters:
ms- milliseconds- Returns:
- the number of minutes represented by the specified number of milliseconds
-
getPlugins
- Specified by:
getPluginsin interfaceExtendedSystemInfoUtils- Returns:
- a collection of plugins
-
isPluginEnabled
public boolean isPluginEnabled(com.atlassian.plugin.Plugin plugin) - Specified by:
isPluginEnabledin interfaceExtendedSystemInfoUtils- Parameters:
plugin- the plugin- Returns:
- true if the plugin is currently enabled; false otherwise
-
isJvmWithPermGen
public boolean isJvmWithPermGen()- Specified by:
isJvmWithPermGenin 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:
isClusteredin interfaceExtendedSystemInfoUtils- Returns:
- true if the instance is clustered.
-
getClusterNodeInformation
- Specified by:
getClusterNodeInformationin interfaceExtendedSystemInfoUtils- Returns:
- A map of cluster nodes mapped to their live status, i.e. are they heartbeating.
-