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 Summary
Constructors Constructor Description Entry(BuildMemory.MemoryImprint.Entry copy)
Constructor to create a copy of with the contents of an existing Entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BuildMemory.MemoryImprint.Entry
clone()
Run
getBuild()
The build of a project.Long
getCompletedTimestamp()
The timestamp whensetBuildCompleted(boolean)
was set to true.String
getCustomUrl()
Gets the URL to post for an entry.Job
getProject()
The Project.Long
getStartedTimestamp()
The timestamp whensetBuild(Run)
was called with a non null value.long
getTriggeredTimestamp()
The timestamp when this entry was created.String
getUnsuccessfulMessage()
Gets the unsuccessful message for an entry.boolean
isBuildCompleted()
If the build is completed.boolean
isCancelled()
If the build was cancelled.boolean
isProject(Job other)
Deprecated.useisProject(String)
insteadboolean
isProject(String otherName)
If the provided project is the same as this entry is referencing.String
toString()
-
-
-
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
-
clone
public BuildMemory.MemoryImprint.Entry clone()
-
getProject
@CheckForNull @WithBridgeMethods(hudson.model.AbstractProject.class) public Job getProject()
The Project.- Returns:
- the project.
-
getBuild
@CheckForNull @WithBridgeMethods(hudson.model.AbstractBuild.class) 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 whensetBuildCompleted(boolean)
was set to true.null
indicates not completed yet.- Returns:
- the timestamp the build completed.
-
getStartedTimestamp
@CheckForNull public Long getStartedTimestamp()
The timestamp whensetBuild(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.useisProject(String)
insteadIf 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.
-
-