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

java.lang.Object
  extended by com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
      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
 
Fields inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
taskArchive
 
Constructor Summary
Top5SuccessfulDeployments(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)
           
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.widgets.Top5DeploymentsByState
getReport
 
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

Top5SuccessfulDeployments

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

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)