com.xebialabs.deployit.core.rest.api.reports.widgets
Class DeploymentsPercentageWidgetData
java.lang.Object
com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
com.xebialabs.deployit.core.rest.api.reports.widgets.DeploymentsPercentageWidgetData
- All Implemented Interfaces:
- Widget
public class DeploymentsPercentageWidgetData
- extends TaskArchiveReport
Status overview widget
|
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 beginDate,
org.joda.time.DateTime endDate)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeploymentsPercentageWidgetData
public DeploymentsPercentageWidgetData(com.xebialabs.deployit.task.archive.JcrTaskArchive taskArchive)
getReport
public com.xebialabs.deployit.core.api.dto.Report getReport(org.joda.time.DateTime beginDate,
org.joda.time.DateTime endDate)
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)