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.DatabaseMetaData
MEGABYTE
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 SystemInfoUtils
public String getDbDescriptorValue()
getDbDescriptorValue
in interface SystemInfoUtils
public String getDbDescriptorLabel()
getDbDescriptorLabel
in interface SystemInfoUtils
public String getAppServer()
getAppServer
in interface SystemInfoUtils
public String getUptime(ResourceBundle resourceBundle)
getUptime
in interface SystemInfoUtils
public long getTotalMemory()
getTotalMemory
in interface SystemInfoUtils
public long getFreeMemory()
getFreeMemory
in interface SystemInfoUtils
public long getFreeAllocatedMemory()
getFreeAllocatedMemory
in interface SystemInfoUtils
public long getUnAllocatedMemory()
getUnAllocatedMemory
in interface SystemInfoUtils
public long getAllocatedMemory()
getAllocatedMemory
in interface SystemInfoUtils
public long getUsedMemory()
getUsedMemory
in interface SystemInfoUtils
public List<com.atlassian.jdk.utilities.runtimeinformation.MemoryInformation> getMemoryPoolInformation()
getMemoryPoolInformation
in interface SystemInfoUtils
public long getTotalPermGenMemory()
getTotalPermGenMemory
in interface SystemInfoUtils
public long getFreePermGenMemory()
getFreePermGenMemory
in interface SystemInfoUtils
public long getUsedPermGenMemory()
getUsedPermGenMemory
in interface SystemInfoUtils
public long getTotalNonHeapMemory()
getTotalNonHeapMemory
in interface SystemInfoUtils
public long getFreeNonHeapMemory()
getFreeNonHeapMemory
in interface SystemInfoUtils
public long getUsedNonHeapMemory()
getUsedNonHeapMemory
in interface SystemInfoUtils
public String getJvmInputArguments()
getJvmInputArguments
in interface SystemInfoUtils
public SystemInfoUtils.DatabaseMetaData getDatabaseMetaData() throws org.ofbiz.core.entity.GenericEntityException, JiraException, SQLException
getDatabaseMetaData
in interface SystemInfoUtils
org.ofbiz.core.entity.GenericEntityException
JiraException
SQLException
public 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 SystemInfoUtils
databaseType
- Type name of the database as defined in DatabaseType
Optional
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 SystemInfoUtils
Copyright © 2002-2021 Atlassian. All Rights Reserved.