Class BuildHungDetailsImpl
java.lang.Object
com.atlassian.bamboo.build.monitoring.BuildHungDetailsImpl
- All Implemented Interfaces:
BuildHungDetails
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
The calculated expected build time - takes into account the average build time and the user configuration of the build multiplieslong
The expected log time (as configured by the user)long
The last date when a log has been receivedWhen exactly the hung was detectedlong
The diff between the last log time and current timeint
hashCode()
void
populateDataFromMap
(Map<String, String> dataMap) void
setExpectedBuildTime
(long expectedBuildTime) void
setExpectedLogTime
(long expectedLogTime) void
setLastLogTime
(long lastLogTime) void
setTimeHangDetected
(Date timeHangDetected)
-
Constructor Details
-
BuildHungDetailsImpl
public BuildHungDetailsImpl()
-
-
Method Details
-
getDataMap
- Specified by:
getDataMap
in interfaceBuildHungDetails
-
populateDataFromMap
- Specified by:
populateDataFromMap
in interfaceBuildHungDetails
-
getTimeSinceLastLogTime
public long getTimeSinceLastLogTime()Description copied from interface:BuildHungDetails
The diff between the last log time and current time- Specified by:
getTimeSinceLastLogTime
in interfaceBuildHungDetails
- Returns:
-
getLastLogTime
public long getLastLogTime()Description copied from interface:BuildHungDetails
The last date when a log has been received- Specified by:
getLastLogTime
in interfaceBuildHungDetails
- Returns:
-
setLastLogTime
public void setLastLogTime(long lastLogTime) -
getTimeHangDetected
Description copied from interface:BuildHungDetails
When exactly the hung was detected- Specified by:
getTimeHangDetected
in interfaceBuildHungDetails
- Returns:
-
setTimeHangDetected
-
getExpectedBuildTime
public long getExpectedBuildTime()Description copied from interface:BuildHungDetails
The calculated expected build time - takes into account the average build time and the user configuration of the build multiplies- Specified by:
getExpectedBuildTime
in interfaceBuildHungDetails
- Returns:
-
setExpectedBuildTime
public void setExpectedBuildTime(long expectedBuildTime) -
getExpectedLogTime
public long getExpectedLogTime()Description copied from interface:BuildHungDetails
The expected log time (as configured by the user)- Specified by:
getExpectedLogTime
in interfaceBuildHungDetails
- Returns:
-
setExpectedLogTime
public void setExpectedLogTime(long expectedLogTime) -
hashCode
public int hashCode() -
equals
-