public class

JiraSystemInfo

extends Object
java.lang.Object
   ↳ com.atlassian.jira.startup.JiraSystemInfo

Class Overview

This will obtain JIRA system information and place it in the specified 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.

Summary

Public Constructors
JiraSystemInfo(FormattedLogMsg logMsg, BuildUtilsInfo buildUtilsInfo)
Public Methods
void obtainBasicInfo(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!

NOTE : Only PRIVILEGED CODE should make this call.

void obtainUpgradeHistory()
Only call AFTER JIRA is fully up!
void obtainUserDirectoyInfo()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public JiraSystemInfo (FormattedLogMsg logMsg, BuildUtilsInfo buildUtilsInfo)

Public Methods

public void obtainBasicInfo (ServletContext context)

This only gets the most basic environment information to avoid bring up the JIRA world before the raw database checks are done.

It MUST BE CAREFUL not to access an JIRA code that will bring up the world

Parameters
context - a ServletContext that the app is running in. This may be nulll

public void obtainDatabaseConfigurationInfo ()

Obtains database configuration information. This should be called after the database has been checked for sanity and hence we can safely do some entityengine.xml and database connection test. But this is before the database is auto-created and hence the support team can get valuable configuration information before a real DB cockup is encountered.

public void obtainDatabaseStatistics ()

Only call AFTER JIRA is fully up!

public void obtainFilePaths ()

public void obtainFilePaths (JiraHome jiraHome)

Only call AFTER JIRA is fully up!

Parameters
jiraHome the JIRA home

public void obtainJiraAppProperties ()

Only call AFTER JIRA is fully up!

public void obtainListeners ()

Only call AFTER JIRA is fully up!

public void obtainPlugins ()

Only call AFTER JIRA is fully up!

public void obtainServices ()

Only call AFTER JIRA is fully up!

public void obtainSystemPathProperties ()

public void obtainSystemProperties ()

Gets basic Java System Properties. These are safe to access very early on and won't bring up an unintended JIRA code.

public void obtainTrustedApps ()

Only call AFTER JIRA is fully up!

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.

public void obtainUpgradeHistory ()

Only call AFTER JIRA is fully up!

public void obtainUserDirectoyInfo ()