com.atlassian.bamboo.build.monitoring
Class BuildHungDetailsImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.monitoring.BuildHungDetailsImpl
All Implemented Interfaces:
BuildHungDetails

public class BuildHungDetailsImpl
extends java.lang.Object
implements BuildHungDetails


Constructor Summary
BuildHungDetailsImpl()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getDataMap()
           
 long getExpectedBuildTime()
          The calculated expected build time - takes into account the average build time and the user configuration of the build multiplies
 long getExpectedLogTime()
          The expected log time (as configured by the user)
 long getLastLogTime()
          The last date when a log has been received
 java.util.Date getTimeHangDetected()
          When exactly the hung was detected
 long getTimeSinceLastLogTime()
          The diff between the last log time and current time
 void populateDataFromMap(java.util.Map<java.lang.String,java.lang.String> dataMap)
           
 void setExpectedBuildTime(long expectedBuildTime)
           
 void setExpectedLogTime(long expectedLogTime)
           
 void setLastLogTime(long lastLogTime)
           
 void setTimeHangDetected(java.util.Date timeHangDetected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildHungDetailsImpl

public BuildHungDetailsImpl()
Method Detail

getDataMap

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getDataMap()
Specified by:
getDataMap in interface BuildHungDetails

populateDataFromMap

public void populateDataFromMap(java.util.Map<java.lang.String,java.lang.String> dataMap)
Specified by:
populateDataFromMap in interface BuildHungDetails

getTimeSinceLastLogTime

public long getTimeSinceLastLogTime()
Description copied from interface: BuildHungDetails
The diff between the last log time and current time

Specified by:
getTimeSinceLastLogTime in interface BuildHungDetails
Returns:

getLastLogTime

public long getLastLogTime()
Description copied from interface: BuildHungDetails
The last date when a log has been received

Specified by:
getLastLogTime in interface BuildHungDetails
Returns:

setLastLogTime

public void setLastLogTime(long lastLogTime)

getTimeHangDetected

public java.util.Date getTimeHangDetected()
Description copied from interface: BuildHungDetails
When exactly the hung was detected

Specified by:
getTimeHangDetected in interface BuildHungDetails
Returns:

setTimeHangDetected

public void setTimeHangDetected(java.util.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 interface BuildHungDetails
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 interface BuildHungDetails
Returns:

setExpectedLogTime

public void setExpectedLogTime(long expectedLogTime)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.