Class BuildMemory.MemoryImprint.Entry

java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.gerritnotifier.model.BuildMemory.MemoryImprint.Entry
All Implemented Interfaces:
Cloneable
Enclosing class:
BuildMemory.MemoryImprint

public static class BuildMemory.MemoryImprint.Entry extends Object implements Cloneable
A project-build entry in the list of a MemoryImprint.
  • Constructor Details

  • Method Details

    • clone

      Overrides:
      clone in class Object
    • getProject

      @CheckForNull public Job getProject()
      The Project.
      Returns:
      the project.
    • getBuild

      @CheckForNull public Run getBuild()
      The build of a project.
      Returns:
      the build.
    • getCustomUrl

      public String getCustomUrl()
      Gets the URL to post for an entry.
      Returns:
      the URL.
    • getUnsuccessfulMessage

      public String getUnsuccessfulMessage()
      Gets the unsuccessful message for an entry.
      Returns:
      the message.
    • isBuildCompleted

      public boolean isBuildCompleted()
      If the build is completed.
      Returns:
      true if the build is completed.
    • isCancelled

      public boolean isCancelled()
      If the build was cancelled.
      Returns:
      true if the build was cancelled while in the Queue
    • getCompletedTimestamp

      @CheckForNull public Long getCompletedTimestamp()
      The timestamp when setBuildCompleted(boolean) was set to true. null indicates not completed yet.
      Returns:
      the timestamp the build completed.
    • getStartedTimestamp

      @CheckForNull public Long getStartedTimestamp()
      The timestamp when setBuild(Run) was called with a non null value. null indicates not started yet.
      Returns:
      the timestamp when the build was started.
    • getTriggeredTimestamp

      public long getTriggeredTimestamp()
      The timestamp when this entry was created. i.e. when it was triggered.
      Returns:
      the timestamp when the job was triggered.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isProject

      public boolean isProject(String otherName)
      If the provided project is the same as this entry is referencing. It does so by checking the fullName for equality.
      Parameters:
      otherName - the other project name to check
      Returns:
      true if so.
      See Also:
    • isProject

      @Deprecated public boolean isProject(Job other)
      Deprecated.
      use isProject(String) instead
      If the provided project is the same as this entry is referencing. It does so by checking the fullName for equality.
      Parameters:
      other - the other project to check
      Returns:
      true if so.