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

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

public abstract class Top5DeploymentsByState
extends java.lang.Object


Field Summary
protected  com.xebialabs.deployit.task.TaskArchive taskArchive
           
 
Constructor Summary
Top5DeploymentsByState()
           
 
Method Summary
protected  java.lang.String formatToMins(long millis)
           
protected  double getPercentage(double numOfTasksInAState, double totalTasks)
           
 com.xebialabs.deployit.core.api.dto.Report getReport(com.xebialabs.deployit.core.api.resteasy.Date begin, com.xebialabs.deployit.core.api.resteasy.Date end)
           
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskArchive

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

Top5DeploymentsByState

public Top5DeploymentsByState()
Method Detail

getReport

public com.xebialabs.deployit.core.api.dto.Report getReport(com.xebialabs.deployit.core.api.resteasy.Date begin,
                                                            com.xebialabs.deployit.core.api.resteasy.Date end)

getPercentage

protected final double getPercentage(double numOfTasksInAState,
                                     double totalTasks)

formatToMins

protected final java.lang.String formatToMins(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)