com.atlassian.confluence.status.service
Class DefaultSystemInformationService

java.lang.Object
  extended by com.atlassian.confluence.status.service.DefaultSystemInformationService
All Implemented Interfaces:
SystemInformationService

public class DefaultSystemInformationService
extends java.lang.Object
implements SystemInformationService

Default implementation of the SystemInformationService. This implementation performs no authorization checking of the calls made, allowing it to be used across non-authorized situations such as on the 500 error page, and the SystemErrorLogger.

This implementation makes no attempt at caching the returned info beans so be aware that each call will be returning a new instance.


Constructor Summary
DefaultSystemInformationService()
           
 
Method Summary
 ConfluenceInfo getConfluenceInfo()
           
 DatabaseInfo getDatabaseInfo()
           
 I18NBean getI18NBean()
           
 MemoryInfo getMemoryInfo()
           
 java.util.Map<java.lang.String,java.lang.String> getModifications()
           
 DatabaseInfo getSafeDatabaseInfo()
           
 SystemInfo getSystemProperties()
           
 UsageInfo getUsageInfo()
           
 boolean isShowInfoOn500()
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setI18NBean(I18NBean i18NBean)
           
 void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
           
 void setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setRegistry(HashRegistryCache registry)
           
 void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void setSidManager(ConfluenceSidManager sidManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSystemInformationService

public DefaultSystemInformationService()
Method Detail

getConfluenceInfo

public ConfluenceInfo getConfluenceInfo()
Specified by:
getConfluenceInfo in interface SystemInformationService
Returns:
information about the Confluence build and other basic configuration for the system. Should the system be in a state in which information is not available (e.g. bootstrap failed) then null will be returned.

getDatabaseInfo

public DatabaseInfo getDatabaseInfo()
Specified by:
getDatabaseInfo in interface SystemInformationService
Returns:
information about the database configuration for the system. Should the system be in a state in which information is not available (e.g. bootstrap failed) then null will be returned.

getSafeDatabaseInfo

public DatabaseInfo getSafeDatabaseInfo()
Specified by:
getSafeDatabaseInfo in interface SystemInformationService
Returns:
information about the database configuration for the system. Properties that require the direct retrieval of a database connection will be skipped. Some properties are pulled out of the system config which technically could fault through to the database, but for the most part they'll be cached.

getSystemProperties

public SystemInfo getSystemProperties()
Specified by:
getSystemProperties in interface SystemInformationService
Returns:
various useful system information points, mainly gathered from the System properties. Regardless of system state, an instance bean will always be returned from this call.

getMemoryInfo

public MemoryInfo getMemoryInfo()
Specified by:
getMemoryInfo in interface SystemInformationService
Returns:
information about the memory status of the system.

getUsageInfo

public UsageInfo getUsageInfo()
Specified by:
getUsageInfo in interface SystemInformationService
Returns:
information about the amount of data in the system.

setLuceneConnection

public void setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setSessionFactory

public void setSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setSidManager

public void setSidManager(ConfluenceSidManager sidManager)

setRegistry

public void setRegistry(HashRegistryCache registry)

getModifications

public java.util.Map<java.lang.String,java.lang.String> getModifications()
Specified by:
getModifications in interface SystemInformationService

isShowInfoOn500

public boolean isShowInfoOn500()
Specified by:
isShowInfoOn500 in interface SystemInformationService

getI18NBean

public I18NBean getI18NBean()

setI18NBean

public void setI18NBean(I18NBean i18NBean)

setI18NBeanFactory

public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)


Copyright © 2003-2011 Atlassian. All Rights Reserved.