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

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
      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 TaskArchiveReport


Field Summary
 
Fields inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
taskArchive
 
Constructor Summary
Top5DeploymentsByState(com.xebialabs.deployit.task.archive.JcrTaskArchive taskArchive)
           
 
Method Summary
protected static java.lang.String formatToHours(long millis)
           
protected static java.lang.String formatToMins(long millis)
           
protected static java.lang.String formatToSecs(long millis)
           
protected static double getPercentage(double numOfTasksInAState, double totalTasks)
           
 com.xebialabs.deployit.core.api.dto.Report getReport(org.joda.time.DateTime begin, org.joda.time.DateTime end)
           
protected
<T> java.util.Map<java.lang.String,T>
initializeMap(org.joda.time.DateTime begin, org.joda.time.DateTime end, com.google.common.base.Function<java.lang.String,T> f)
           
 
Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
cloneSearchParameters, getSearchParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Top5DeploymentsByState

public Top5DeploymentsByState(com.xebialabs.deployit.task.archive.JcrTaskArchive taskArchive)
Method Detail

getReport

public com.xebialabs.deployit.core.api.dto.Report getReport(org.joda.time.DateTime begin,
                                                            org.joda.time.DateTime end)

getPercentage

protected static final double getPercentage(double numOfTasksInAState,
                                            double totalTasks)

formatToSecs

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

formatToMins

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

formatToHours

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

initializeMap

protected <T> java.util.Map<java.lang.String,T> initializeMap(org.joda.time.DateTime begin,
                                                              org.joda.time.DateTime end,
                                                              com.google.common.base.Function<java.lang.String,T> f)