Class BuildBlockedAction
java.lang.Object
hudson.model.InvisibleAction
org.jenkinsci.plugins.githubautostatus.BuildBlockedAction
- All Implemented Interfaces:
Action,ModelObject
Keeps track of time a job was spent in the blocked state.
- Author:
- Jeff Pearce (GitHub jeffpearce)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the amount of time the item spent blocked.longGets the time the item was released.voidsetTimeReleased(long timeReleased) Sets the time the item was released.Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
BuildBlockedAction
public BuildBlockedAction() -
BuildBlockedAction
public BuildBlockedAction(long timeStartBlocked)
-
-
Method Details
-
getTimeReleased
public long getTimeReleased()Gets the time the item was released.- Returns:
- the time the item was released
-
setTimeReleased
public void setTimeReleased(long timeReleased) Sets the time the item was released.- Parameters:
timeReleased- the time the item was released
-
getTimeBlocked
public long getTimeBlocked()Gets the amount of time the item spent blocked.- Returns:
- the amount of time blocked, in milliseconds
-