com.atlassian.confluence.status.service
Class SystemInformationHelper

java.lang.Object
  extended by com.atlassian.confluence.status.service.SystemInformationHelper

public class SystemInformationHelper
extends Object

Takes the Confluence system information and represents it as various ordered maps of key-value pairs. The keys are suitable for localisation.


Constructor Summary
SystemInformationHelper(I18NBean i18n, SystemInformationService service)
           
 
Method Summary
 Map<String,String> getDatabaseInfo()
          Gets an ordered map of information about Confluence's database connection, including driver details and (if possible) latency.
 Map<String,String> getRuntimeEnvironment(javax.servlet.ServletContext context)
          Gets an ordered map of information about the Confluence runtime environment: JVM, application server and operating environment
 Map<String,String> getSystemSummary()
          Gets an ordered map of general system summary information, including system startup time, Confluence version and the ever-important system favourite colour.
 Map<String,String> getUsageInfo()
          Gets an ordered map of information about the size of a Confluence instance, including the number of spaces and content entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemInformationHelper

public SystemInformationHelper(I18NBean i18n,
                               SystemInformationService service)
Method Detail

getSystemSummary

public Map<String,String> getSystemSummary()
Gets an ordered map of general system summary information, including system startup time, Confluence version and the ever-important system favourite colour.

Returns:
an ordered map of general system information

getRuntimeEnvironment

public Map<String,String> getRuntimeEnvironment(javax.servlet.ServletContext context)
Gets an ordered map of information about the Confluence runtime environment: JVM, application server and operating environment

Parameters:
context - the servlet context. If this argument is null, some information may not be included
Returns:
an ordered map of runtime information

getDatabaseInfo

public Map<String,String> getDatabaseInfo()
Gets an ordered map of information about Confluence's database connection, including driver details and (if possible) latency.

Returns:
an ordered map of information about Confluecne's database connection.

getUsageInfo

public Map<String,String> getUsageInfo()
Gets an ordered map of information about the size of a Confluence instance, including the number of spaces and content entities.

Returns:
an ordered map of information about the size of a Confluence instance


Copyright © 2003-2012 Atlassian. All Rights Reserved.