Class Top10SuccessfulDeployments
- java.lang.Object
-
- com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
-
- com.xebialabs.deployit.core.rest.api.reports.widgets.Top10DeploymentsByState
-
- com.xebialabs.deployit.core.rest.api.reports.widgets.Top10SuccessfulDeployments
-
- All Implemented Interfaces:
Widget
public class Top10SuccessfulDeployments extends Top10DeploymentsByState
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringMONTHprotected static java.lang.StringNUMBER_ABORTED_DEPLOYMENTSprotected static java.lang.StringNUMBER_FAILED_DEPLOYMENTSprotected static java.lang.StringNUMBER_ROLLBACK_DEPLOYMENTSprotected static java.lang.StringNUMBER_SUCCESSFUL_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_ABORTED_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_FAILED_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_ROLLBACK_DEPLOYMENTSprotected static java.lang.StringPERCENTAGE_SUCCESSFUL_DEPLOYMENTSprotected static intTOP_Nstatic java.lang.StringZERO-
Fields inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
taskArchive
-
-
Constructor Summary
Constructors Constructor Description Top10SuccessfulDeployments(com.xebialabs.deployit.task.archive.TaskArchive taskArchive)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringformatToHours(long millis)protected static java.lang.StringformatToMins(long millis)protected static java.lang.StringformatToSecs(long millis)protected static java.lang.StringgetFormattedMonth(int monthOfYear)protected static java.lang.StringgetFormattedPercentage(double numOfTasksInAState, double totalTasks)protected static doublegetPercentage(double numOfTasksInAState, double totalTasks)-
Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.widgets.Top10DeploymentsByState
getReport
-
Methods inherited from class com.xebialabs.deployit.core.rest.api.reports.TaskArchiveReport
cloneSearchParameters, getSearchParameters, getValue
-
-
-
-
Field Detail
-
TOP_N
protected static final int TOP_N
- See Also:
- Constant Field Values
-
NUMBER_SUCCESSFUL_DEPLOYMENTS
protected static final java.lang.String NUMBER_SUCCESSFUL_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_ABORTED_DEPLOYMENTS
protected static final java.lang.String NUMBER_ABORTED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_FAILED_DEPLOYMENTS
protected static final java.lang.String NUMBER_FAILED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
NUMBER_ROLLBACK_DEPLOYMENTS
protected static final java.lang.String NUMBER_ROLLBACK_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_SUCCESSFUL_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_SUCCESSFUL_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_ABORTED_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_ABORTED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_FAILED_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_FAILED_DEPLOYMENTS
- See Also:
- Constant Field Values
-
PERCENTAGE_ROLLBACK_DEPLOYMENTS
protected static final java.lang.String PERCENTAGE_ROLLBACK_DEPLOYMENTS
- See Also:
- Constant Field Values
-
MONTH
protected static final java.lang.String MONTH
- See Also:
- Constant Field Values
-
ZERO
public static final java.lang.String ZERO
-
-
Method Detail
-
getPercentage
protected static final double getPercentage(double numOfTasksInAState, double totalTasks)
-
getFormattedPercentage
protected static final java.lang.String getFormattedPercentage(double numOfTasksInAState, double totalTasks)
-
getFormattedMonth
protected static final java.lang.String getFormattedMonth(int monthOfYear)
-
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)
-
-