Class DefaultSystemInformationService
- java.lang.Object
-
- com.atlassian.confluence.status.service.DefaultSystemInformationService
-
- All Implemented Interfaces:
SystemInformationService
public class DefaultSystemInformationService extends 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.
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.status.service.SystemInformationService
JDBC_DRIVER_SYSTEM_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description DefaultSystemInformationService()
-
Method Summary
-
-
-
Method Detail
-
getConfluenceInfo
public ConfluenceInfo getConfluenceInfo()
- Specified by:
getConfluenceInfo
in interfaceSystemInformationService
- 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 interfaceSystemInformationService
- 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 interfaceSystemInformationService
- 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 interfaceSystemInformationService
- 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 interfaceSystemInformationService
- Returns:
- information about the memory status of the system.
-
getUsageInfo
public UsageInfo getUsageInfo()
- Specified by:
getUsageInfo
in interfaceSystemInformationService
- Returns:
- information about the amount of data in the system.
-
getSystemInfoFromDb
public SystemInfoFromDb getSystemInfoFromDb()
- Specified by:
getSystemInfoFromDb
in interfaceSystemInformationService
- Returns:
- all system information that originate from the database.
-
setBootstrapManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
-
setSharedHome
public void setSharedHome(com.atlassian.dc.filestore.api.FileStore sharedHome)
-
setLocalHome
public void setLocalHome(com.atlassian.dc.filestore.api.FileStore localHome)
-
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
setSettingsManager
@Deprecated public void setSettingsManager(SettingsManager settingsManager)
Deprecated.since 7.20 UsesetGlobalSettingsManager(GlobalSettingsManager)
-
setGlobalSettingsManager
public void setGlobalSettingsManager(GlobalSettingsManager settingsManager)
- Since:
- 7.20
-
setSidManager
public void setSidManager(ConfluenceSidManager sidManager)
-
setRegistry
public void setRegistry(HashRegistryCache registry)
-
setHibernateConfig
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
-
getModifications
public Map<String,String> getModifications()
- Specified by:
getModifications
in interfaceSystemInformationService
-
isShowInfoOn500
public boolean isShowInfoOn500()
- Specified by:
isShowInfoOn500
in interfaceSystemInformationService
-
getAccessMode
public AccessMode getAccessMode()
- Specified by:
getAccessMode
in interfaceSystemInformationService
- Returns:
- the maintenance info
-
getMaxHTTPThreads
public Integer getMaxHTTPThreads()
- Specified by:
getMaxHTTPThreads
in interfaceSystemInformationService
- Returns:
- max number of HTTP threads configured in Tomcat
-
getHibernateProperties
public Properties getHibernateProperties()
- Specified by:
getHibernateProperties
in interfaceSystemInformationService
- Returns:
- a Properties map of Hibernate properties from the application config
-
getHardwareInfo
public HardwareInfo getHardwareInfo()
- Specified by:
getHardwareInfo
in interfaceSystemInformationService
- Returns:
- information about the hardware specifications of the system on which Confluence is running
-
getCloudPlatformMetadata
public Optional<CloudPlatformMetadata> getCloudPlatformMetadata()
- Specified by:
getCloudPlatformMetadata
in interfaceSystemInformationService
- Returns:
- information about the cloud platform on which Confluence is running, if any
-
getClusteredDatabaseInformation
public Optional<ClusteredDatabasePlatformMetadata> getClusteredDatabaseInformation(CloudPlatformType cloudPlatformType)
- Specified by:
getClusteredDatabaseInformation
in interfaceSystemInformationService
- Returns:
- information about the clustered DB system to which Confluence is connected, if any
-
getI18NBean
public I18NBean getI18NBean()
-
setI18NBean
public void setI18NBean(I18NBean i18NBean)
-
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
-
setLicenseService
public void setLicenseService(LicenseService licenseService)
-
setDateFormatterFactory
public void setDateFormatterFactory(DateFormatterFactory dateFormatterFactory)
-
setAccessModeManager
public void setAccessModeManager(AccessModeManager accessModeManager)
-
setTomcatConfigHelper
public void setTomcatConfigHelper(TomcatConfigHelper tomcatConfigHelper)
-
setCloudPlatformMetadataService
public void setCloudPlatformMetadataService(CloudPlatformMetadataService cloudPlatformMetadataService)
-
setClusteredDatabasePlatformMetadataService
public void setClusteredDatabasePlatformMetadataService(ClusteredDatabasePlatformMetadataService clusteredDatabasePlatformMetadataService)
-
-