com.xebialabs.deployit.core.rest.api.reports.widgets
Class Top5LongestRunningDeployments
java.lang.Object
com.xebialabs.deployit.core.rest.api.reports.widgets.Top5LongestRunningDeployments
- All Implemented Interfaces:
- Widget
public class Top5LongestRunningDeployments
- extends java.lang.Object
|
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)
|
com.xebialabs.deployit.core.api.dto.Report |
getReport(com.xebialabs.deployit.core.api.resteasy.Date beginDate,
com.xebialabs.deployit.core.api.resteasy.Date endDate)
|
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 |
taskArchive
protected com.xebialabs.deployit.task.TaskArchive taskArchive
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 beginDate,
com.xebialabs.deployit.core.api.resteasy.Date endDate)
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)