public interface

ExtendedSystemInfoUtils

com.atlassian.jira.util.system.ExtendedSystemInfoUtils
Known Indirect Subclasses

Class Overview

Contains methods for obtaining various collections of system information in a localised format. In contrast to SystemInfoUtils, these methods are more dependant on components being correctly initialised, thus they should only be used once the application is in a stable state.

Summary

Public Methods
Map<StringString> getApplicationPropertiesFormatted(String suffix)
For each application property, display the key and its value.
String getAttachmentsLocation()
String getBackupLocation()
String getBaseUrl()
Map<StringString> getBuildStats()
Map<NodeBoolean> getClusterNodeInformation()
Map<StringString> getCommonConfigProperties()
The common configuration properties that apply to this instance of JIRA
String getDefaultLanguage()
String getEntityEngineXmlPath()
Set<String> getIPMatches(TrustedApplicationInfo info)
String getIndexLocation()
String getJiraHomeLocation()
String getJiraLocalHomeLocation()
Map<StringString> getJvmStats()
Collection<GenericValue> getListeners()
String getLogPath()
List<MemoryInformation> getMemoryPoolInformation()
long getMillisecondsToMinutes(long ms)
Collection<Plugin> getPlugins()
Map<StringString> getProps()
Default is to hide sensitive system information (for the 500 page, etc.)
Map<StringString> getProps(boolean showSensitiveInfo)
Map<StringString> getServicePropertyMap(JiraServiceContainer serviceContainer)
Collection<JiraServiceContainer> getServices()
SystemInfoUtils getSystemInfoUtils()
Map<StringString> getSystemPropertiesFormatted(String suffix)
For each system properties, display the key and its value.
Set<TrustedApplicationInfo> getTrustedApplications(JiraServiceContext jiraServiceContext)
List<UpgradeHistoryItem> getUpgradeHistory()
Set<String> getUrlMatches(TrustedApplicationInfo info)
Map<StringString> getUsageStats()
boolean isClustered()
boolean isJvmJava5OrGreater()
boolean isJvmWithPermGen()
boolean isPluginEnabled(Plugin plugin)
boolean isUsingSystemLocale()
Checks whether the default locale has been set or not.

Public Methods

public Map<StringString> getApplicationPropertiesFormatted (String suffix)

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

Parameters
suffix the string to add to the suffix of ';' and/or ':'
Returns
  • Map of system property keys to its value

public String getAttachmentsLocation ()

Returns
  • the path to the attachments directory

public String getBackupLocation ()

Returns
  • the path to the backup directory

public String getBaseUrl ()

Returns
  • the base URL of the application

public Map<StringString> getBuildStats ()

Returns
  • information about the current build of JIRA

public Map<NodeBoolean> getClusterNodeInformation ()

Returns
  • A map of cluster nodes mapped to their live status, i.e. are they heartbeating.

public Map<StringString> getCommonConfigProperties ()

The common configuration properties that apply to this instance of JIRA

Returns
  • a Map of property names to

public String getDefaultLanguage ()

Returns
  • the default language set in the application's properties - rendered in the current user's locale

public String getEntityEngineXmlPath ()

Returns
  • the path to the entityengine.xml file

public Set<String> getIPMatches (TrustedApplicationInfo info)

Parameters
info the trusted application
Returns
  • the set of IP matches defined for this trusted app

public String getIndexLocation ()

Returns
  • the path to the application's index file

public String getJiraHomeLocation ()

Returns
  • the current configured location of shared JIRA Home

public String getJiraLocalHomeLocation ()

Returns
  • the current configured location of local JIRA Home

public Map<StringString> getJvmStats ()

Returns
  • memory statistics for the JVM

public Collection<GenericValue> getListeners ()

Returns
  • a collection of raw listener GVs

public String getLogPath ()

Returns
  • the path to the atlassian-jira.log file

public List<MemoryInformation> getMemoryPoolInformation ()

Returns
  • memory pool statistics for the JVM

public long getMillisecondsToMinutes (long ms)

Parameters
ms milliseconds
Returns
  • the number of minutes represented by the specified number of milliseconds

public Collection<Plugin> getPlugins ()

Returns
  • a collection of plugins

public Map<StringString> getProps ()

Default is to hide sensitive system information (for the 500 page, etc.)

Returns
  • an ordered map of system properties

public Map<StringString> getProps (boolean showSensitiveInfo)

Parameters
showSensitiveInfo Whether to include sensitive system information (e.g. database URL)
Returns
  • an ordered map of system properties

public Map<StringString> getServicePropertyMap (JiraServiceContainer serviceContainer)

Parameters
serviceContainer the service object to obtain properties for
Returns
  • a map of properties relating to the service configuration

public Collection<JiraServiceContainer> getServices ()

Returns
  • a collection of JiraServiceContainers for each service

public SystemInfoUtils getSystemInfoUtils ()

Returns
  • the SystemInfoUtils object

public Map<StringString> getSystemPropertiesFormatted (String suffix)

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

Parameters
suffix the string to add to the suffix of ';' and/or ':'
Returns
  • Map of system property keys to its value

public Set<TrustedApplicationInfo> getTrustedApplications (JiraServiceContext jiraServiceContext)

Parameters
jiraServiceContext the JIRA service context
Returns
  • a set of TrustedApplicationInfo objects

public List<UpgradeHistoryItem> getUpgradeHistory ()

Returns
  • information about the upgrade history of JIRA

public Set<String> getUrlMatches (TrustedApplicationInfo info)

Parameters
info the trusted application
Returns
  • the set of URL matches defined for this trusted app

public Map<StringString> getUsageStats ()

Returns
  • usage statistics for the application (user counts, issue counts, etc)

public boolean isClustered ()

Returns
  • true if the instance is clustered.

public boolean isJvmJava5OrGreater ()

Returns
  • true if using a 1.5 or higher JVM, false otherwise.

public boolean isJvmWithPermGen ()

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).

public boolean isPluginEnabled (Plugin plugin)

Parameters
plugin the plugin
Returns
  • true if the plugin is currently enabled; false otherwise

public boolean isUsingSystemLocale ()

Checks whether the default locale has been set or not.

Returns
  • true if default locale is set, false if using system locale