Class BuildHungDetailsImpl
java.lang.Object
com.atlassian.bamboo.build.monitoring.BuildHungDetailsImpl
- All Implemented Interfaces:
BuildHungDetails,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe calculated expected build time - takes into account the average build time and the user configuration of the build multiplieslongThe expected log time (as configured by the user)longThe last date when a log has been receivedWhen exactly the hung was detectedlongThe diff between the last log time and current timeinthashCode()voidpopulateDataFromMap(Map<String, String> dataMap) voidsetExpectedBuildTime(long expectedBuildTime) voidsetExpectedLogTime(long expectedLogTime) voidsetLastLogTime(long lastLogTime) voidsetTimeHangDetected(Date timeHangDetected)
-
Constructor Details
-
BuildHungDetailsImpl
public BuildHungDetailsImpl()
-
-
Method Details
-
getDataMap
- Specified by:
getDataMapin interfaceBuildHungDetails
-
populateDataFromMap
- Specified by:
populateDataFromMapin interfaceBuildHungDetails
-
getTimeSinceLastLogTime
public long getTimeSinceLastLogTime()Description copied from interface:BuildHungDetailsThe diff between the last log time and current time- Specified by:
getTimeSinceLastLogTimein interfaceBuildHungDetails- Returns:
-
getLastLogTime
public long getLastLogTime()Description copied from interface:BuildHungDetailsThe last date when a log has been received- Specified by:
getLastLogTimein interfaceBuildHungDetails- Returns:
-
setLastLogTime
public void setLastLogTime(long lastLogTime) -
getTimeHangDetected
Description copied from interface:BuildHungDetailsWhen exactly the hung was detected- Specified by:
getTimeHangDetectedin interfaceBuildHungDetails- Returns:
-
setTimeHangDetected
-
getExpectedBuildTime
public long getExpectedBuildTime()Description copied from interface:BuildHungDetailsThe calculated expected build time - takes into account the average build time and the user configuration of the build multiplies- Specified by:
getExpectedBuildTimein interfaceBuildHungDetails- Returns:
-
setExpectedBuildTime
public void setExpectedBuildTime(long expectedBuildTime) -
getExpectedLogTime
public long getExpectedLogTime()Description copied from interface:BuildHungDetailsThe expected log time (as configured by the user)- Specified by:
getExpectedLogTimein interfaceBuildHungDetails- Returns:
-
setExpectedLogTime
public void setExpectedLogTime(long expectedLogTime) -
hashCode
public int hashCode() -
equals
-