Class SystemInfoImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.SystemInfo
-
- com.atlassian.bamboo.configuration.SystemInfoImpl
-
- All Implemented Interfaces:
Serializable
@PublicApi public class SystemInfoImpl extends SystemInfo implements Serializable
POJO for presenting the system runtime information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SystemInfoImpl()
SystemInfoImpl(@Nullable StartupStatisticsBean startupStatisticsBean, @Nullable BuildDirectoryManager buildDirectoryManager, @Nullable BambooHomeLocator homeLocator)
-
Method Summary
-
-
-
Constructor Detail
-
SystemInfoImpl
public SystemInfoImpl()
-
SystemInfoImpl
public SystemInfoImpl(@Nullable @Nullable StartupStatisticsBean startupStatisticsBean, @Nullable @Nullable BuildDirectoryManager buildDirectoryManager, @Nullable @Nullable BambooHomeLocator homeLocator)
-
-
Method Detail
-
getStartupTimestamp
public long getStartupTimestamp()
- Specified by:
getStartupTimestamp
in classSystemInfo
-
getCurrentDate
public Date getCurrentDate()
- Specified by:
getCurrentDate
in classSystemInfo
-
getCurrentDirectory
public String getCurrentDirectory()
- Specified by:
getCurrentDirectory
in classSystemInfo
-
getUptime
public String getUptime()
- Specified by:
getUptime
in classSystemInfo
-
getHostName
public String getHostName()
- Specified by:
getHostName
in classSystemInfo
-
getIpAddress
public String getIpAddress()
- Specified by:
getIpAddress
in classSystemInfo
-
getTempDir
public String getTempDir()
- Specified by:
getTempDir
in classSystemInfo
-
getSystemDate
public String getSystemDate()
- Specified by:
getSystemDate
in classSystemInfo
-
getSystemTime
public String getSystemTime()
- Specified by:
getSystemTime
in classSystemInfo
-
getUserName
public String getUserName()
- Specified by:
getUserName
in classSystemInfo
-
getUserTimezone
public String getUserTimezone()
- Specified by:
getUserTimezone
in classSystemInfo
-
getUserLocale
public String getUserLocale()
- Specified by:
getUserLocale
in classSystemInfo
-
getUserHome
public String getUserHome()
- Specified by:
getUserHome
in classSystemInfo
-
getBambooLogsDirectoryPath
public String getBambooLogsDirectoryPath()
- Specified by:
getBambooLogsDirectoryPath
in classSystemInfo
-
getSystemEncoding
public String getSystemEncoding()
- Specified by:
getSystemEncoding
in classSystemInfo
-
getOperatingSystem
public String getOperatingSystem()
- Specified by:
getOperatingSystem
in classSystemInfo
-
getOperatingSystemArchitecture
public String getOperatingSystemArchitecture()
- Specified by:
getOperatingSystemArchitecture
in classSystemInfo
-
getTotalMemory
public long getTotalMemory()
- Specified by:
getTotalMemory
in classSystemInfo
-
getFreeMemory
public long getFreeMemory()
- Specified by:
getFreeMemory
in classSystemInfo
-
getUsedMemory
public long getUsedMemory()
- Specified by:
getUsedMemory
in classSystemInfo
-
getMaxMemory
public long getMaxMemory()
- Specified by:
getMaxMemory
in classSystemInfo
-
getAvailableProcessors
public int getAvailableProcessors()
- Specified by:
getAvailableProcessors
in classSystemInfo
-
getSharedHomeDirectory
public String getSharedHomeDirectory()
- Specified by:
getSharedHomeDirectory
in classSystemInfo
-
getLocalHomeDirectory
public String getLocalHomeDirectory()
-
isSplitHome
public boolean isSplitHome()
-
getLocalAgents
public String getLocalAgents()
- Specified by:
getLocalAgents
in classSystemInfo
-
getApplicationHome
@Nullable public @Nullable String getApplicationHome()
- Specified by:
getApplicationHome
in classSystemInfo
-
getBuildWorkingDirectory
public String getBuildWorkingDirectory()
- Specified by:
getBuildWorkingDirectory
in classSystemInfo
-
getArtifactsDirectory
public String getArtifactsDirectory()
- Specified by:
getArtifactsDirectory
in classSystemInfo
-
getFreeDiskSpace
@Nullable public @Nullable String getFreeDiskSpace()
- Specified by:
getFreeDiskSpace
in classSystemInfo
- Returns:
- free disk space or null if it could not be retrieved
-
getSystemProperty
public String getSystemProperty(String key)
- Specified by:
getSystemProperty
in classSystemInfo
-
getConfigPath
public String getConfigPath()
- Specified by:
getConfigPath
in classSystemInfo
-
getBuildPath
public String getBuildPath()
- Specified by:
getBuildPath
in classSystemInfo
-
getIndexSize
public String getIndexSize()
- Specified by:
getIndexSize
in classSystemInfo
-
getEnvironmentVariables
public Collection getEnvironmentVariables()
- Specified by:
getEnvironmentVariables
in classSystemInfo
-
getSystemProperties
public Collection getSystemProperties()
- Specified by:
getSystemProperties
in classSystemInfo
-
fullOutput
public String fullOutput()
- Specified by:
fullOutput
in classSystemInfo
-
-