com.atlassian.jira.startup
Class JiraSystemInfo

java.lang.Object
  extended by com.atlassian.jira.startup.JiraSystemInfo

public class JiraSystemInfo
extends Object

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.

Since:
v3.13

Constructor Summary
JiraSystemInfo(FormattedLogMsg logMsg, BuildUtilsInfo buildUtilsInfo)
           
 
Method Summary
 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!

NOTE : Only PRIVILEGED CODE should make this call.

 void obtainUpgradeHistory()
          Only call AFTER JIRA is fully up!
 void obtainUserDirectoyInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraSystemInfo

public JiraSystemInfo(FormattedLogMsg logMsg,
                      BuildUtilsInfo buildUtilsInfo)
Method Detail

obtainBasicInfo

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

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

obtainSystemProperties

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.


obtainSystemPathProperties

public void obtainSystemPathProperties()

obtainUserDirectoyInfo

public void obtainUserDirectoyInfo()

obtainDatabaseConfigurationInfo

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.


obtainJiraAppProperties

public void obtainJiraAppProperties()
Only call AFTER JIRA is fully up!


obtainDatabaseStatistics

public void obtainDatabaseStatistics()
Only call AFTER JIRA is fully up!


obtainUpgradeHistory

public void obtainUpgradeHistory()
Only call AFTER JIRA is fully up!


obtainFilePaths

public void obtainFilePaths()

obtainFilePaths

public void obtainFilePaths(JiraHome jiraHome)
Only call AFTER JIRA is fully up!

Parameters:
jiraHome - the JIRA home

obtainPlugins

public void obtainPlugins()
Only call AFTER JIRA is fully up!


obtainListeners

public void obtainListeners()
Only call AFTER JIRA is fully up!


obtainServices

public void obtainServices()
Only call AFTER JIRA is fully up!


obtainTrustedApps

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.



Copyright © 2002-2012 Atlassian. All Rights Reserved.