com.xebialabs.deployit.core.rest.api.reports.widgets
Class Top5SuccessfulDeployments

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.api.reports.widgets.Top5DeploymentsByState
      extended by com.xebialabs.deployit.core.rest.api.reports.widgets.Top5SuccessfulDeployments
All Implemented Interfaces:
Widget

public class Top5SuccessfulDeployments
extends Top5DeploymentsByState


Field Summary
protected  com.xebialabs.deployit.task.TaskArchive taskArchive
           
 
Method Summary
protected  java.lang.String formatToHours(long millis)
           
protected  java.lang.String formatToMins(long millis)
           
protected  java.lang.String formatToSecs(long millis)
           
static Widget getInstance(com.xebialabs.deployit.task.TaskArchive taskArchive)
           
protected  double getPercentage(double numOfTasksInAState, double totalTasks)
           
protected
<T> java.util.Map<java.lang.String,T>
initializeMap(com.xebialabs.deployit.core.api.resteasy.Date begin, com.xebialabs.deployit.core.api.resteasy.Date end, com.google.common.base.Function<java.lang.String,T> f)
           
 
Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.widgets.Top5DeploymentsByState
getReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskArchive

protected com.xebialabs.deployit.task.TaskArchive taskArchive
Method Detail

getInstance

public static final Widget getInstance(com.xebialabs.deployit.task.TaskArchive taskArchive)

getPercentage

protected final double getPercentage(double numOfTasksInAState,
                                     double totalTasks)

formatToSecs

protected final java.lang.String formatToSecs(long millis)

formatToMins

protected final java.lang.String formatToMins(long millis)

formatToHours

protected final java.lang.String formatToHours(long millis)

initializeMap

protected <T> java.util.Map<java.lang.String,T> initializeMap(com.xebialabs.deployit.core.api.resteasy.Date begin,
                                                              com.xebialabs.deployit.core.api.resteasy.Date end,
                                                              com.google.common.base.Function<java.lang.String,T> f)