Class BuildHungDetailsImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.monitoring.BuildHungDetailsImpl
-
- All Implemented Interfaces:
BuildHungDetails
,Serializable
public class BuildHungDetailsImpl extends Object implements BuildHungDetails
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BuildHungDetailsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull Map<String,String>
getDataMap()
long
getExpectedBuildTime()
The calculated expected build time - takes into account the average build time and the user configuration of the build multiplieslong
getExpectedLogTime()
The expected log time (as configured by the user)long
getLastLogTime()
The last date when a log has been receivedDate
getTimeHangDetected()
When exactly the hung was detectedlong
getTimeSinceLastLogTime()
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)
-
-
-
Method Detail
-
getDataMap
@NotNull public @NotNull Map<String,String> getDataMap()
- Specified by:
getDataMap
in interfaceBuildHungDetails
-
populateDataFromMap
public void populateDataFromMap(Map<String,String> dataMap)
- 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
public Date getTimeHangDetected()
Description copied from interface:BuildHungDetails
When exactly the hung was detected- Specified by:
getTimeHangDetected
in interfaceBuildHungDetails
- Returns:
-
setTimeHangDetected
public void setTimeHangDetected(Date timeHangDetected)
-
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)
-
-