Class SystemInfoImpl
java.lang.Object
com.atlassian.bamboo.configuration.SystemInfo
com.atlassian.bamboo.configuration.SystemInfoImpl
- All Implemented Interfaces:
Serializable
POJO for presenting the system runtime information.
- See Also:
-
Constructor Summary
ConstructorDescriptionSystemInfoImpl
(@Nullable StartupStatisticsBean startupStatisticsBean, @Nullable BuildDirectoryManager buildDirectoryManager, @Nullable BambooHomeLocator homeLocator) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
int
@Nullable String
long
long
long
getSystemProperty
(String key) long
long
boolean
toString()
-
Constructor Details
-
SystemInfoImpl
public SystemInfoImpl() -
SystemInfoImpl
public SystemInfoImpl(@Nullable @Nullable StartupStatisticsBean startupStatisticsBean, @Nullable @Nullable BuildDirectoryManager buildDirectoryManager, @Nullable @Nullable BambooHomeLocator homeLocator)
-
-
Method Details
-
getStartupTimestamp
public long getStartupTimestamp()- Specified by:
getStartupTimestamp
in classSystemInfo
-
getCurrentDate
- Specified by:
getCurrentDate
in classSystemInfo
-
getCurrentDirectory
- Specified by:
getCurrentDirectory
in classSystemInfo
-
getUptime
- Specified by:
getUptime
in classSystemInfo
-
getHostName
- Specified by:
getHostName
in classSystemInfo
-
getIpAddress
- Specified by:
getIpAddress
in classSystemInfo
-
getTempDir
- Specified by:
getTempDir
in classSystemInfo
-
getSystemDate
- Specified by:
getSystemDate
in classSystemInfo
-
getSystemTime
- Specified by:
getSystemTime
in classSystemInfo
-
getUserName
- Specified by:
getUserName
in classSystemInfo
-
getUserTimezone
- Specified by:
getUserTimezone
in classSystemInfo
-
getUserLocale
- Specified by:
getUserLocale
in classSystemInfo
-
getUserHome
- Specified by:
getUserHome
in classSystemInfo
-
getBambooLogsDirectoryPath
- Specified by:
getBambooLogsDirectoryPath
in classSystemInfo
-
getSystemEncoding
- Specified by:
getSystemEncoding
in classSystemInfo
-
getOperatingSystem
- Specified by:
getOperatingSystem
in classSystemInfo
-
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
-
getLocalHomeDirectory
-
isSplitHome
public boolean isSplitHome() -
getLocalAgents
- Specified by:
getLocalAgents
in classSystemInfo
-
getApplicationHome
- Specified by:
getApplicationHome
in classSystemInfo
-
getBuildWorkingDirectory
- Specified by:
getBuildWorkingDirectory
in classSystemInfo
-
getArtifactsDirectory
- Specified by:
getArtifactsDirectory
in classSystemInfo
-
getFreeDiskSpace
- Specified by:
getFreeDiskSpace
in classSystemInfo
- Returns:
- free disk space or null if it could not be retrieved
-
getSystemProperty
- Specified by:
getSystemProperty
in classSystemInfo
-
getConfigPath
- Specified by:
getConfigPath
in classSystemInfo
-
getBuildPath
- Specified by:
getBuildPath
in classSystemInfo
-
getIndexSize
- Specified by:
getIndexSize
in classSystemInfo
-
getEnvironmentVariables
- Specified by:
getEnvironmentVariables
in classSystemInfo
-
getSystemProperties
- Specified by:
getSystemProperties
in classSystemInfo
-
fullOutput
- Specified by:
fullOutput
in classSystemInfo
-
toString
-