Class BuildBlockedAction

java.lang.Object
hudson.model.InvisibleAction
org.jenkinsci.plugins.githubautostatus.BuildBlockedAction
All Implemented Interfaces:
Action, ModelObject

public class BuildBlockedAction extends InvisibleAction
Keeps track of time a job was spent in the blocked state.
Author:
Jeff Pearce (GitHub jeffpearce)
  • 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