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
A project-build entry in the list of a MemoryImprint.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor to create a copy of with the contents of an existing Entry. -
Method Summary
Modifier and TypeMethodDescriptionclone()getBuild()The build of a project.The timestamp whensetBuildCompleted(boolean)was set to true.Gets the URL to post for an entry.The Project.The timestamp whensetBuild(Run)was called with a non null value.longThe timestamp when this entry was created.Gets the unsuccessful message for an entry.booleanIf the build is completed.booleanIf the build was cancelled.booleanDeprecated.booleanIf the provided project is the same as this entry is referencing.toString()
-
Constructor Details
-
Entry
Constructor to create a copy of with the contents of an existing Entry.- Parameters:
copy- the entry to copy.- See Also:
-
-
Method Details
-
clone
-
getProject
The Project.- Returns:
- the project.
-
getBuild
The build of a project.- Returns:
- the build.
-
getCustomUrl
Gets the URL to post for an entry.- Returns:
- the URL.
-
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
The timestamp whensetBuildCompleted(boolean)was set to true.nullindicates not completed yet.- Returns:
- the timestamp the build completed.
-
getStartedTimestamp
The timestamp whensetBuild(Run)was called with a non null value.nullindicates 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
-
isProject
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.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.
-
isProject(String)instead