maps.hudson.plugin.xfpanel
Class XFPanelView.XFPanelEntry

java.lang.Object
  extended by maps.hudson.plugin.xfpanel.XFPanelView.XFPanelEntry
Enclosing class:
XFPanelView

public final class XFPanelView.XFPanelEntry
extends java.lang.Object

Represents a job to be shown on the panel Intermediates access to data available for the given Job

Author:
jrenaut

Constructor Summary
XFPanelView.XFPanelEntry(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 getColor()
           
 java.lang.String getCulprit()
          Elects a culprit/responsible for a broken build by choosing all possible commiters of a given build
 java.lang.String getDiff()
           
 java.lang.String getDiffColor()
           
 int getFailCount()
           
 hudson.model.Job<?,?> getJob()
           
 java.lang.String getName()
           
 int getNumberOfFailedBuilds()
           
 java.lang.Boolean getQueued()
           
 java.lang.Integer getQueueNumber()
           
 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

XFPanelView.XFPanelEntry

public XFPanelView.XFPanelEntry(hudson.model.Job<?,?> job)
C'tor

Parameters:
job - the job to be represented
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

getNumberOfFailedBuilds

public int getNumberOfFailedBuilds()
Returns:
number of failed builds since last successful build

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 all possible commiters of a given build

Returns:
the culprits/responsibles

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


Copyright © 2004-2012 Hudson. All Rights Reserved.