public class SystemInfoUtilsImpl extends Object implements SystemInfoUtils
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemInfoUtilsImpl.ClusteredDatabaseMetaDataImpl |
protected static class |
SystemInfoUtilsImpl.MaskedUrlDatabaseMetaData |
SystemInfoUtils.ClusteredDatabaseMetadata, SystemInfoUtils.DatabaseMetaDataMEGABYTE| Constructor and Description |
|---|
SystemInfoUtilsImpl() |
SystemInfoUtilsImpl(OfBizConnectionFactory connectionFactory,
Set<ClusteredDatabaseProbe> probes) |
public SystemInfoUtilsImpl()
public SystemInfoUtilsImpl(OfBizConnectionFactory connectionFactory, Set<ClusteredDatabaseProbe> probes)
public String getDatabaseType()
getDatabaseType in interface SystemInfoUtilspublic String getDbDescriptorValue()
getDbDescriptorValue in interface SystemInfoUtilspublic String getDbDescriptorLabel()
getDbDescriptorLabel in interface SystemInfoUtilspublic String getAppServer()
getAppServer in interface SystemInfoUtilspublic String getUptime(ResourceBundle resourceBundle)
getUptime in interface SystemInfoUtilspublic long getTotalMemory()
getTotalMemory in interface SystemInfoUtilspublic long getFreeMemory()
getFreeMemory in interface SystemInfoUtilspublic long getFreeAllocatedMemory()
getFreeAllocatedMemory in interface SystemInfoUtilspublic long getUnAllocatedMemory()
getUnAllocatedMemory in interface SystemInfoUtilspublic long getAllocatedMemory()
getAllocatedMemory in interface SystemInfoUtilspublic long getUsedMemory()
getUsedMemory in interface SystemInfoUtilspublic List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()
getMemoryPoolInformation in interface SystemInfoUtilspublic long getTotalPermGenMemory()
getTotalPermGenMemory in interface SystemInfoUtilspublic long getFreePermGenMemory()
getFreePermGenMemory in interface SystemInfoUtilspublic long getUsedPermGenMemory()
getUsedPermGenMemory in interface SystemInfoUtilspublic long getTotalNonHeapMemory()
getTotalNonHeapMemory in interface SystemInfoUtilspublic long getFreeNonHeapMemory()
getFreeNonHeapMemory in interface SystemInfoUtilspublic long getUsedNonHeapMemory()
getUsedNonHeapMemory in interface SystemInfoUtilspublic String getJvmInputArguments()
getJvmInputArguments in interface SystemInfoUtilspublic SystemInfoUtils.DatabaseMetaData getDatabaseMetaData() throws org.ofbiz.core.entity.GenericEntityException, JiraException, SQLException
getDatabaseMetaData in interface SystemInfoUtilsorg.ofbiz.core.entity.GenericEntityExceptionJiraExceptionSQLExceptionpublic Optional<SystemInfoUtils.ClusteredDatabaseMetadata> getClusteredDatabaseMetaData(String databaseType)
Optional wrapping over the underlying database cluster metadata, if the database is recognised as a clustered database. A set of probes, each represented by a ClusteredDatabaseProbe, are registered and each probe is responsible to detect and gather cluster metadata information for a specific database type.
The first probe in the set that matches with the databaseType parameter is used to retrieve metadata from the database. This behavior may change when we have multiple probes registered for a given database type.getClusteredDatabaseMetaData in interface SystemInfoUtilsdatabaseType - Type name of the database as defined in DatabaseTypeOptional describing ClusteredDatabaseMetadata of the underlying database,
or an empty Optional if a ClusteredDatabaseProbe is not found or if it does not complete successfullypublic String getInstallationType()
getInstallationType in interface SystemInfoUtilsCopyright © 2002-2024 Atlassian. All Rights Reserved.