public class JiraSystemInfo extends Object
FormattedLogMsg
This is used at JIRA startup time and is VERY aware of when certain methods can be called and when they cant. During startup we only access certain JIRA code very carefully.
Constructor and Description |
---|
JiraSystemInfo(FormattedLogMsg logMsg,
BuildUtilsInfo buildUtilsInfo) |
Modifier and Type | Method and Description |
---|---|
void |
obtainBasicInfo(javax.servlet.ServletContext context)
This only gets the most basic environment information to avoid bring up the JIRA world before the raw database
checks are done.
|
void |
obtainDatabaseConfigurationInfo()
Obtains database configuration information.
|
void |
obtainDatabaseStatistics()
Only call AFTER JIRA is fully up!
|
void |
obtainFilePaths() |
void |
obtainFilePaths(JiraHome jiraHome)
Only call AFTER JIRA is fully up!
|
void |
obtainJiraAppProperties()
Only call AFTER JIRA is fully up!
|
void |
obtainListeners()
Only call AFTER JIRA is fully up!
|
void |
obtainPlugins()
Only call AFTER JIRA is fully up!
|
void |
obtainServices()
Only call AFTER JIRA is fully up!
|
void |
obtainSystemPathProperties() |
void |
obtainSystemProperties()
Gets basic Java System Properties.
|
void |
obtainTrustedApps()
Only call AFTER JIRA is fully up!
|
void |
obtainUpgradeHistory()
Only call AFTER JIRA is fully up!
|
void |
obtainUserDirectoyInfo() |
public JiraSystemInfo(FormattedLogMsg logMsg, BuildUtilsInfo buildUtilsInfo)
public void obtainBasicInfo(javax.servlet.ServletContext context)
It MUST BE CAREFUL not to access an JIRA code that will bring up the world
context
- - a ServletContext that the app is running in. This may be nulllpublic void obtainSystemProperties()
public void obtainSystemPathProperties()
public void obtainUserDirectoyInfo()
public void obtainDatabaseConfigurationInfo()
public void obtainJiraAppProperties()
public void obtainDatabaseStatistics()
public void obtainUpgradeHistory()
public void obtainFilePaths()
public void obtainFilePaths(JiraHome jiraHome)
jiraHome
- the JIRA homepublic void obtainPlugins()
public void obtainListeners()
public void obtainServices()
public void obtainTrustedApps()
NOTE : Only PRIVILEGED CODE should make this call. This code goes to the Trusted Apps Manager directly. It does this because at JIRA start time, there is no user. So be careful when calling this method and don't propagate more permissions that are required.
Copyright © 2002-2015 Atlassian. All Rights Reserved.