hudson.model
Class ViewEntry

java.lang.Object
  extended by hudson.model.ViewEntry

public final class ViewEntry
extends java.lang.Object

Represents a job to be shown in a view. Based heavily on the XFPanelEntry in XFPanel plugin.

Author:
jrenaut

Constructor Summary
ViewEntry(RadiatorView radiatorView, hudson.model.Job<?,?> job)
          C'tor
 
Method Summary
 java.lang.String getBackgroundColor()
           
 java.lang.Boolean getBroken()
           
 java.lang.Boolean getBuilding()
           
 java.util.List<hudson.model.Run<?,?>> getBuildsInProgress()
           
 java.lang.String getClaim()
          If the claims plugin is installed, this will get details of the claimed build failures.
 java.lang.String getColor()
           
 java.lang.String getCulprit()
          Elects a culprit/responsible for a broken build by choosing the last commiter of a given build
 java.lang.String getDiff()
           
 java.lang.String getDiffColor()
           
 int getFailCount()
           
 hudson.model.Job<?,?> getJob()
           
 java.lang.String getLastCompletedBuild()
           
 java.lang.String getLastStableBuild()
           
 java.lang.String getName()
           
 java.lang.Boolean getQueued()
           
 java.lang.Integer getQueueNumber()
           
 boolean getStable()
           
 int getSuccessCount()
           
 java.lang.String getSuccessPercentage()
           
 int getTestCount()
           
 java.lang.String getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewEntry

public ViewEntry(RadiatorView radiatorView,
                 hudson.model.Job<?,?> job)
C'tor

Parameters:
job - the job to be represented
radiatorView - TODO
Method Detail

getJob

public hudson.model.Job<?,?> getJob()
Returns:
the job

getName

public java.lang.String getName()
Returns:
the job's name

getQueued

public java.lang.Boolean getQueued()
Returns:
if this job is queued for build

getQueueNumber

public java.lang.Integer getQueueNumber()
Returns:
the job's queue number, if any

getBackgroundColor

public java.lang.String getBackgroundColor()
Returns:
background color for this job

getColor

public java.lang.String getColor()
Returns:
foreground color for this job

getBroken

public java.lang.Boolean getBroken()
Returns:
true se o último build está quebrado

getBuilding

public java.lang.Boolean getBuilding()
Returns:
true if this job is currently being built

getUrl

public java.lang.String getUrl()
Returns:
the URL for the last build

getBuildsInProgress

public java.util.List<hudson.model.Run<?,?>> getBuildsInProgress()
Returns:
a list will all the currently building runs for this job.

getTestCount

public int getTestCount()
Returns:
total tests executed

getFailCount

public int getFailCount()
Returns:
total failed tests

getSuccessCount

public int getSuccessCount()
Returns:
total successful tests

getDiff

public java.lang.String getDiff()
Returns:
difference between this job's last build successful tests and the previous'

getCulprit

public java.lang.String getCulprit()
Elects a culprit/responsible for a broken build by choosing the last commiter of a given build

Returns:
the culprit/responsible

getDiffColor

public java.lang.String getDiffColor()
Returns:
color to be used to show the test diff

getSuccessPercentage

public java.lang.String getSuccessPercentage()
Returns:
the percentage of successful tests versus the total

getLastCompletedBuild

public java.lang.String getLastCompletedBuild()

getLastStableBuild

public java.lang.String getLastStableBuild()

getStable

public boolean getStable()
Returns:
true if the build is stable.

getClaim

public java.lang.String getClaim()
If the claims plugin is installed, this will get details of the claimed build failures.

Returns:
details of any claims for the broken build, or null if nobody has claimed this build.


Copyright © 2010. All Rights Reserved.