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<String, String>
|
getApplicationPropertiesFormatted(String suffix)
For each application property, display the key and its value.
|
String
|
getAttachmentsLocation()
|
String
|
getBackupLocation()
|
String
|
getBaseUrl()
|
Map<String, String>
|
getBuildStats()
|
Map<String, String>
|
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<String, String>
|
getJvmStats()
|
Map<String, String>
|
getLicenseInfo()
|
Collection<GenericValue>
|
getListeners()
|
String
|
getLogPath()
|
List<MemoryInformation>
|
getMemoryPoolInformation()
|
long
|
getMillisecondsToMinutes(long ms)
|
Collection<Plugin>
|
getPlugins()
|
Map<String, String>
|
getProps(boolean showSensitiveInfo)
|
Map<String, String>
|
getProps()
Default is to hide sensitive system information (for the 500 page, etc.)
|
Map<String, String>
|
getServicePropertyMap(JiraServiceContainer serviceContainer)
|
Collection<JiraServiceContainer>
|
getServices()
|
SystemInfoUtils
|
getSystemInfoUtils()
|
Map<String, String>
|
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<String, String>
|
getUsageStats()
|
boolean
|
isJvmJava5OrGreater()
|
boolean
|
isJvmWithPermGen()
|
boolean
|
isPluginEnabled(Plugin plugin)
|
boolean
|
isUsingSystemLocale()
Checks whether the default locale has been set or not.
|
Public Methods
public
Map<String, String>
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
Returns
- information about the current build of JIRA
public
Map<String, String>
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
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
Returns
- memory statistics for the JVM
Returns
- details of the current license
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)
Returns
- the number of minutes represented by the specified number of milliseconds
public
Map<String, String>
getProps
(boolean showSensitiveInfo)
Parameters
showSensitiveInfo
| Whether to include sensitive system information (e.g. database URL) |
Returns
- an ordered map of system properties
Default is to hide sensitive system information (for the 500 page, etc.)
Returns
- an ordered map of system properties
Parameters
serviceContainer
| the service object to obtain properties for |
Returns
- a map of properties relating to the service configuration
Returns
- a collection of JiraServiceContainers for each service
Returns
- the SystemInfoUtils object
public
Map<String, String>
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
Parameters
jiraServiceContext
| the JIRA service context |
Returns
- a set of TrustedApplicationInfo objects
Returns
- information about the upgrade history of JIRA
Parameters
info
| the trusted application |
Returns
- the set of URL matches defined for this trusted app
Returns
- usage statistics for the application (user counts, issue counts, etc)
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)
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