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

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

public class DeploymentsDurationFrequencyWidget
extends java.lang.Object


Field Summary
protected  com.xebialabs.deployit.task.TaskArchive taskArchive
           
 
Constructor Summary
DeploymentsDurationFrequencyWidget(com.xebialabs.deployit.task.TaskArchive taskArchive)
           
 
Method Summary
protected  java.lang.String formatToMins(long millis)
           
static Widget getInstance(com.xebialabs.deployit.task.TaskArchive taskArchive)
           
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

DeploymentsDurationFrequencyWidget

public DeploymentsDurationFrequencyWidget(com.xebialabs.deployit.task.TaskArchive taskArchive)
Method Detail

getInstance

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

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)