| Package | Description | 
|---|---|
| org.apache.ambari.server.controller.internal | |
| org.apache.ambari.server.orm.dao | |
| org.apache.ambari.server.topology | 
| Modifier and Type | Method and Description | 
|---|---|
static double | 
UpgradeResourceProvider.calculateAbortedProgress(Map<Long,HostRoleCommandStatusSummaryDTO> summary)
Unlike in CalculatedStatus, we can't use ABORTED here as a COMPLETED state. 
 | 
static Map<HostRoleStatus,Integer> | 
CalculatedStatus.calculateTaskStatusCounts(Map<Long,HostRoleCommandStatusSummaryDTO> stageDto,
                         Set<Long> stageIds)
Return counts of task statuses. 
 | 
static CalculatedStatus | 
CalculatedStatus.statusFromStageSummary(Map<Long,HostRoleCommandStatusSummaryDTO> stageDto,
                      Set<Long> stageIds)
Calculates the overall status of an upgrade. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.aborted(int count)
For testing, set the number of  
HostRoleStatus.ABORTED tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.completed(int count)
For testing, set the number of  
HostRoleStatus.COMPLETED tasks | 
static HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.create()
For testing, create an empty summary. 
 | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.failed(int count)
For testing, set the number of  
HostRoleStatus.FAILED tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.inProgress(int count)
For testing, set the number of  
HostRoleStatus.IN_PROGRESS tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.pending(int count)
For testing, set the number of  
HostRoleStatus.PENDING tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.queued(int count)
For testing, set the number of  
HostRoleStatus.QUEUED tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.skippedFailed(int count)
For testing, set the number of  
HostRoleStatus.SKIPPED_FAILED tasks | 
HostRoleCommandStatusSummaryDTO | 
HostRoleCommandStatusSummaryDTO.timedout(int count)
For testing, set the number of  
HostRoleStatus.TIMEDOUT tasks | 
| Modifier and Type | Method and Description | 
|---|---|
Map<Long,HostRoleCommandStatusSummaryDTO> | 
HostRoleCommandDAO.findAggregateCounts(Long requestId)
Finds the counts of tasks for a request and groups them by stage id. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Map<Long,HostRoleCommandStatusSummaryDTO> | 
LogicalRequest.getStageSummaries()  | 
Map<Long,HostRoleCommandStatusSummaryDTO> | 
TopologyManager.getStageSummaries(Long requestId)  | 
Copyright © 2022 Apache Software Foundation. All rights reserved.