Class DefaultSystemInformationService
java.lang.Object
com.atlassian.confluence.status.service.DefaultSystemInformationService
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongetClusteredDatabaseInformation(CloudPlatformType cloudPlatformType) booleanvoidsetAccessModeManager(AccessModeManager accessModeManager) voidsetApplicationConfiguration(com.atlassian.config.ApplicationConfiguration applicationConfiguration) voidsetAttachmentDataFileSystem(AttachmentDataFileSystem attachmentDataFileSystem) voidsetBandanaManager(BandanaManager bandanaManager) voidsetBootstrapManager(BootstrapManager bootstrapManager) voidsetCloudPlatformMetadataService(CloudPlatformMetadataService cloudPlatformMetadataService) voidsetClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper) voidsetClusteredDatabasePlatformMetadataService(ClusteredDatabasePlatformMetadataService clusteredDatabasePlatformMetadataService) voidsetDateFormatterFactory(DateFormatterFactory dateFormatterFactory) voidsetExactSearchController(ExactSearchController exactSearchController) voidsetGlobalSettingsManager(GlobalSettingsManager settingsManager) voidsetHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) voidsetI18NBean(I18NBean i18NBean) voidsetI18NBeanFactory(I18NBeanFactory i18NBeanFactory) voidsetLicenseService(LicenseService licenseService) voidsetLocalHome(com.atlassian.dc.filestore.api.FileStore localHome) voidsetPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) voidsetRegistry(HashRegistryCache registry) voidsetSearchPlatformConfig(SearchPlatformConfig searchPlatformConfig) voidsetSessionFactory(org.hibernate.SessionFactory sessionFactory) voidsetSharedHome(com.atlassian.dc.filestore.api.FileStore sharedHome) voidsetSidManager(ConfluenceSidManager sidManager) voidsetTomcatConfigHelper(TomcatConfigHelper tomcatConfigHelper)
-
Constructor Details
-
DefaultSystemInformationService
public DefaultSystemInformationService()
-
-
Method Details
-
getConfluenceInfo
- Specified by:
getConfluenceInfoin 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
- Specified by:
getDatabaseInfoin 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
- Specified by:
getSafeDatabaseInfoin 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.
-
getSearchInfo
- Specified by:
getSearchInfoin interfaceSystemInformationService- Returns:
- information about the search configuration for the system.
-
getIsExactSearchIndexingEnabled
- Specified by:
getIsExactSearchIndexingEnabledin interfaceSystemInformationService- Returns:
- ExactSearchController, to determine if the ability to index exact search tokens from content is enabled or not.
-
getIsExactSearchQueryEnabled
- Specified by:
getIsExactSearchQueryEnabledin interfaceSystemInformationService- Returns:
- ExactSearchController, to determine if the ability to perform an exact search is enabled or not.
-
getSystemProperties
- Specified by:
getSystemPropertiesin 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.
-
getAttachmentStorageProperties
- Specified by:
getAttachmentStoragePropertiesin interfaceSystemInformationService- Returns:
- information about the storage type used for attachment files.
-
getMemoryInfo
- Specified by:
getMemoryInfoin interfaceSystemInformationService- Returns:
- information about the memory status of the system.
-
getUsageInfo
- Specified by:
getUsageInfoin interfaceSystemInformationService- Returns:
- information about the amount of data in the system.
-
setBootstrapManager
-
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) -
setGlobalSettingsManager
- Since:
- 7.20
-
setSidManager
-
setRegistry
-
setHibernateConfig
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) -
setExactSearchController
-
getModifications
- Specified by:
getModificationsin interfaceSystemInformationService
-
isShowInfoOn500
public boolean isShowInfoOn500()- Specified by:
isShowInfoOn500in interfaceSystemInformationService
-
getAccessMode
- Specified by:
getAccessModein interfaceSystemInformationService- Returns:
- the maintenance info
-
getMaxHTTPThreads
- Specified by:
getMaxHTTPThreadsin interfaceSystemInformationService- Returns:
- max number of HTTP threads configured in Tomcat
-
getHibernateProperties
- Specified by:
getHibernatePropertiesin interfaceSystemInformationService- Returns:
- a Properties map of Hibernate properties from the application config
-
getHardwareInfo
- Specified by:
getHardwareInfoin interfaceSystemInformationService- Returns:
- information about the hardware specifications of the system on which Confluence is running
-
getCloudPlatformMetadata
- Specified by:
getCloudPlatformMetadatain interfaceSystemInformationService- Returns:
- information about the cloud platform on which Confluence is running, if any
-
getClusteredDatabaseInformation
public Optional<ClusteredDatabasePlatformMetadata> getClusteredDatabaseInformation(CloudPlatformType cloudPlatformType) - Specified by:
getClusteredDatabaseInformationin interfaceSystemInformationService- Returns:
- information about the clustered DB system to which Confluence is connected, if any
-
getSecurityInfo
- Specified by:
getSecurityInfoin interfaceSystemInformationService- Returns:
- information about the security configuration of the system.
-
getI18NBean
-
setI18NBean
-
setI18NBeanFactory
-
setBandanaManager
-
setLicenseService
-
setDateFormatterFactory
-
setAccessModeManager
-
setTomcatConfigHelper
-
setCloudPlatformMetadataService
public void setCloudPlatformMetadataService(CloudPlatformMetadataService cloudPlatformMetadataService) -
setClusteredDatabasePlatformMetadataService
public void setClusteredDatabasePlatformMetadataService(ClusteredDatabasePlatformMetadataService clusteredDatabasePlatformMetadataService) -
setApplicationConfiguration
public void setApplicationConfiguration(com.atlassian.config.ApplicationConfiguration applicationConfiguration) -
setClusterConfigurationHelper
public void setClusterConfigurationHelper(ClusterConfigurationHelperInternal clusterConfigurationHelper) -
setAttachmentDataFileSystem
-
setSearchPlatformConfig
-