com.atlassian.jira.util.system
Class SystemInfoUtilsImpl

java.lang.Object
  extended by com.atlassian.jira.util.system.SystemInfoUtilsImpl
All Implemented Interfaces:
SystemInfoUtils

public class SystemInfoUtilsImpl
extends Object
implements SystemInfoUtils

Supply specific system information of the current JIRA installation. For Example: Returning the current database type.


Nested Class Summary
protected static class SystemInfoUtilsImpl.MaskedUrlDatabaseMetaData
           
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.system.SystemInfoUtils
SystemInfoUtils.DatabaseMetaData
 
Field Summary
 
Fields inherited from interface com.atlassian.jira.util.system.SystemInfoUtils
MEGABYTE
 
Constructor Summary
SystemInfoUtilsImpl()
           
 
Method Summary
 long getAllocatedMemory()
           
 String getAppServer()
           
 SystemInfoUtils.DatabaseMetaData getDatabaseMetaData()
           
 String getDatabaseType()
           
 String getDbDescriptorLabel()
           
 String getDbDescriptorValue()
           
 long getFreeAllocatedMemory()
           
 long getFreeMemory()
           
 long getFreeNonHeapMemory()
           
 long getFreePermGenMemory()
           
 String getInstallationType()
           
 String getJvmInputArguments()
           
 List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()
           
 long getTotalMemory()
           
 long getTotalNonHeapMemory()
           
 long getTotalPermGenMemory()
           
 long getUnAllocatedMemory()
           
 String getUptime(ResourceBundle resourceBundle)
           
 long getUsedMemory()
           
 long getUsedNonHeapMemory()
           
 long getUsedPermGenMemory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemInfoUtilsImpl

public SystemInfoUtilsImpl()
Method Detail

getDatabaseType

public String getDatabaseType()
Specified by:
getDatabaseType in interface SystemInfoUtils

getDbDescriptorValue

public String getDbDescriptorValue()
Specified by:
getDbDescriptorValue in interface SystemInfoUtils

getDbDescriptorLabel

public String getDbDescriptorLabel()
Specified by:
getDbDescriptorLabel in interface SystemInfoUtils

getAppServer

public String getAppServer()
Specified by:
getAppServer in interface SystemInfoUtils

getUptime

public String getUptime(ResourceBundle resourceBundle)
Specified by:
getUptime in interface SystemInfoUtils

getTotalMemory

public long getTotalMemory()
Specified by:
getTotalMemory in interface SystemInfoUtils

getFreeMemory

public long getFreeMemory()
Specified by:
getFreeMemory in interface SystemInfoUtils

getFreeAllocatedMemory

public long getFreeAllocatedMemory()
Specified by:
getFreeAllocatedMemory in interface SystemInfoUtils

getUnAllocatedMemory

public long getUnAllocatedMemory()
Specified by:
getUnAllocatedMemory in interface SystemInfoUtils

getAllocatedMemory

public long getAllocatedMemory()
Specified by:
getAllocatedMemory in interface SystemInfoUtils

getUsedMemory

public long getUsedMemory()
Specified by:
getUsedMemory in interface SystemInfoUtils

getMemoryPoolInformation

public List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()
Specified by:
getMemoryPoolInformation in interface SystemInfoUtils

getTotalPermGenMemory

public long getTotalPermGenMemory()
Specified by:
getTotalPermGenMemory in interface SystemInfoUtils

getFreePermGenMemory

public long getFreePermGenMemory()
Specified by:
getFreePermGenMemory in interface SystemInfoUtils

getUsedPermGenMemory

public long getUsedPermGenMemory()
Specified by:
getUsedPermGenMemory in interface SystemInfoUtils

getTotalNonHeapMemory

public long getTotalNonHeapMemory()
Specified by:
getTotalNonHeapMemory in interface SystemInfoUtils

getFreeNonHeapMemory

public long getFreeNonHeapMemory()
Specified by:
getFreeNonHeapMemory in interface SystemInfoUtils

getUsedNonHeapMemory

public long getUsedNonHeapMemory()
Specified by:
getUsedNonHeapMemory in interface SystemInfoUtils

getJvmInputArguments

public String getJvmInputArguments()
Specified by:
getJvmInputArguments in interface SystemInfoUtils

getDatabaseMetaData

public SystemInfoUtils.DatabaseMetaData getDatabaseMetaData()
                                                     throws org.ofbiz.core.entity.GenericEntityException,
                                                            JiraException,
                                                            SQLException
Specified by:
getDatabaseMetaData in interface SystemInfoUtils
Throws:
org.ofbiz.core.entity.GenericEntityException
JiraException
SQLException

getInstallationType

public String getInstallationType()
Specified by:
getInstallationType in interface SystemInfoUtils


Copyright © 2002-2014 Atlassian. All Rights Reserved.