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
ConstructorsConstructorDescriptionSystemInfoImpl(@Nullable StartupStatisticsBean startupStatisticsBean, @Nullable BuildDirectoryManager buildDirectoryManager, @Nullable BambooHomeLocator homeLocator) -
Method Summary
Modifier and TypeMethodDescriptionProvides a list of strings representing the state of this object.Returns a multiline string describing this object's state.@Nullable Stringint@Nullable StringlonglonglonggetSystemProperty(String key) longlongbooleantoString()
-
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:
getStartupTimestampin classSystemInfo
-
getCurrentDate
- Specified by:
getCurrentDatein classSystemInfo
-
getCurrentDirectory
- Specified by:
getCurrentDirectoryin classSystemInfo
-
getUptime
- Specified by:
getUptimein classSystemInfo
-
getHostName
- Specified by:
getHostNamein classSystemInfo
-
getIpAddress
- Specified by:
getIpAddressin classSystemInfo
-
getTempDir
- Specified by:
getTempDirin classSystemInfo
-
getSystemDate
- Specified by:
getSystemDatein classSystemInfo
-
getSystemTime
- Specified by:
getSystemTimein classSystemInfo
-
getUserName
- Specified by:
getUserNamein classSystemInfo
-
getUserTimezone
- Specified by:
getUserTimezonein classSystemInfo
-
getUserLocale
- Specified by:
getUserLocalein classSystemInfo
-
getUserHome
- Specified by:
getUserHomein classSystemInfo
-
getBambooLogsDirectoryPath
- Specified by:
getBambooLogsDirectoryPathin classSystemInfo
-
getSystemEncoding
- Specified by:
getSystemEncodingin classSystemInfo
-
getOperatingSystem
- Specified by:
getOperatingSystemin classSystemInfo
-
getOperatingSystemArchitecture
- Specified by:
getOperatingSystemArchitecturein classSystemInfo
-
getTotalMemory
public long getTotalMemory()- Specified by:
getTotalMemoryin classSystemInfo
-
getFreeMemory
public long getFreeMemory()- Specified by:
getFreeMemoryin classSystemInfo
-
getUsedMemory
public long getUsedMemory()- Specified by:
getUsedMemoryin classSystemInfo
-
getMaxMemory
public long getMaxMemory()- Specified by:
getMaxMemoryin classSystemInfo
-
getAvailableProcessors
public int getAvailableProcessors()- Specified by:
getAvailableProcessorsin classSystemInfo
-
getLocalHomeDirectory
-
isSplitHome
public boolean isSplitHome() -
getLocalAgents
- Specified by:
getLocalAgentsin classSystemInfo
-
getApplicationHome
- Specified by:
getApplicationHomein classSystemInfo
-
getBuildWorkingDirectory
- Specified by:
getBuildWorkingDirectoryin classSystemInfo
-
getArtifactsDirectory
- Specified by:
getArtifactsDirectoryin classSystemInfo
-
getFreeDiskSpace
- Specified by:
getFreeDiskSpacein classSystemInfo- Returns:
- free disk space or null if it could not be retrieved
-
getSystemProperty
- Specified by:
getSystemPropertyin classSystemInfo
-
getConfigPath
- Specified by:
getConfigPathin classSystemInfo
-
getBuildPath
- Specified by:
getBuildPathin classSystemInfo
-
getIndexSize
- Specified by:
getIndexSizein classSystemInfo
-
getEnvironmentVariables
- Specified by:
getEnvironmentVariablesin classSystemInfo
-
getSystemProperties
- Specified by:
getSystemPropertiesin classSystemInfo
-
fullOutput
Description copied from class:SystemInfoReturns a multiline string describing this object's state.- Specified by:
fullOutputin classSystemInfo- Returns:
- A multiline string representation of the object's state.
-
fullMultilineOutput
Description copied from class:SystemInfoProvides a list of strings representing the state of this object.- Specified by:
fullMultilineOutputin classSystemInfo- Returns:
- A list of strings, each representing a line from the object's multiline string representation, detailing the state of one of the fields of this class.
-
toString
-