com.atlassian.jira.web.action.admin
Class ViewSystemInfo

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.admin.ViewSystemInfo
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
JiraSupportRequest

public class ViewSystemInfo
extends JiraWebActionSupport

See Also:
Serialized Form

Field Summary
(package private)  DateFormat dateFormatter
           
(package private) static String LOG_FILE
           
(package private)  Map props
           
(package private)  Properties sysProps
           
(package private)  DateFormat timeFormatter
           
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ViewSystemInfo(SystemInfoUtils systemInfoUtils, ServiceManager serviceManager, com.atlassian.plugin.PluginAccessor pluginAccessor, ApplicationProperties applicationProperties)
           
 
Method Summary
 String doGarbageCollection()
           
 Map getBuildStats()
           
 String getDatabaseType()
           
 String getEntityEngineXmlPath()
           
 long getFreeMemory()
           
 String getIndexLocation()
           
 Map getJvmStats()
           
 Collection getListeners()
           
 String getLogPath()
           
 long getMillisecondsToMinutes(long ms)
           
 Collection getPlugins()
           
 Map getProps()
          Default is to hide sensitive system information (for the 500 page, etc.)
 Map getProps(boolean showSensitiveInfo)
           
 Map getServicePropertyMap(JiraServiceContainer serviceContainer)
           
 Collection getServices()
           
 long getTotalMemory()
           
 Map getUsageStats()
           
 long getUsedMemory()
           
 boolean isPluginEnabled(com.atlassian.plugin.Plugin plugin)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getCalendarTranslationFilenameForLanguage, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSavedFilters, getSelectedProject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, isHasCalendarTranslationForLanguage, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

sysProps

Properties sysProps

props

Map props

dateFormatter

DateFormat dateFormatter

timeFormatter

DateFormat timeFormatter

LOG_FILE

static final String LOG_FILE
See Also:
Constant Field Values
Constructor Detail

ViewSystemInfo

public ViewSystemInfo(SystemInfoUtils systemInfoUtils,
                      ServiceManager serviceManager,
                      com.atlassian.plugin.PluginAccessor pluginAccessor,
                      ApplicationProperties applicationProperties)
Method Detail

doGarbageCollection

public String doGarbageCollection()

getProps

public Map getProps()
Default is to hide sensitive system information (for the 500 page, etc.)

Returns:
an ordered map of system properties

getProps

public Map getProps(boolean showSensitiveInfo)
Parameters:
showSensitiveInfo - Whether to include sensitive system information (e.g. database URL)
Returns:
an ordered map of system properties

getDatabaseType

public String getDatabaseType()

getUsedMemory

public long getUsedMemory()

getFreeMemory

public long getFreeMemory()

getTotalMemory

public long getTotalMemory()

getJvmStats

public Map getJvmStats()

getBuildStats

public Map getBuildStats()

getUsageStats

public Map getUsageStats()

getEntityEngineXmlPath

public String getEntityEngineXmlPath()

getLogPath

public String getLogPath()

getIndexLocation

public String getIndexLocation()

getListeners

public Collection getListeners()

getServices

public Collection getServices()

getServicePropertyMap

public Map getServicePropertyMap(JiraServiceContainer serviceContainer)
                          throws Exception
Throws:
Exception

getMillisecondsToMinutes

public long getMillisecondsToMinutes(long ms)

getPlugins

public Collection getPlugins()

isPluginEnabled

public boolean isPluginEnabled(com.atlassian.plugin.Plugin plugin)


Copyright © 2002-2007 Atlassian. All Rights Reserved.