Class BuildMemory.MemoryImprint.Entry

    • Constructor Detail

      • Entry

        public Entry​(BuildMemory.MemoryImprint.Entry copy)
        Constructor to create a copy of with the contents of an existing Entry.
        Parameters:
        copy - the entry to copy.
        See Also:
        clone()
    • Method Detail

      • 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.
      • 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:
        getProject()
      • 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.