| Modifier and Type | Method and Description | 
|---|---|
protected UpgradeEntity | 
UpgradeResourceProvider.createUpgrade(UpgradeContext upgradeContext)
Creates the upgrade. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static UpgradeUpdateEvent | 
UpgradeUpdateEvent.formFullEvent(HostRoleCommandDAO hostRoleCommandDAO,
             RequestDAO requestDAO,
             UpgradeEntity upgradeEntity,
             UpdateEventType type)  | 
static UpgradeUpdateEvent | 
UpgradeUpdateEvent.formUpdateEvent(HostRoleCommandDAO hostRoleCommandDAO,
               RequestDAO requestDAO,
               UpgradeEntity upgradeEntity)  | 
| Modifier and Type | Method and Description | 
|---|---|
UpgradeEntity | 
UpgradeDAO.findLastUpgradeForCluster(long clusterId,
                         Direction direction)  | 
UpgradeEntity | 
UpgradeDAO.findLastUpgradeOrDowngradeForCluster(long clusterId)  | 
UpgradeEntity | 
UpgradeDAO.findRevertable(long clusterId)
Gets the only revertable upgrade if one exists. 
 | 
UpgradeEntity | 
UpgradeDAO.findRevertableUsingJPQL(long clusterId)
Gets the only revertable upgrade if one exists. 
 | 
UpgradeEntity | 
UpgradeDAO.findUpgrade(long upgradeId)
Finds a specific upgrade 
 | 
UpgradeEntity | 
UpgradeDAO.findUpgradeByRequestId(Long requestId)  | 
UpgradeEntity | 
UpgradeDAO.merge(UpgradeEntity upgradeEntity)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<UpgradeEntity> | 
UpgradeDAO.findAll()
Get all items. 
 | 
List<UpgradeEntity> | 
UpgradeDAO.findUpgrades(long clusterId)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UpgradeDAO.create(UpgradeEntity entity)
Creates the upgrade entity in the database 
 | 
UpgradeEntity | 
UpgradeDAO.merge(UpgradeEntity upgradeEntity)  | 
| Modifier and Type | Method and Description | 
|---|---|
UpgradeEntity | 
ClusterEntity.getUpgradeEntity()  | 
UpgradeEntity | 
UpgradeGroupEntity.getUpgradeEntity()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UpgradeHistoryEntity.setUpgrade(UpgradeEntity upgrade)
Sets the associated upgrade entity. 
 | 
void | 
ClusterEntity.setUpgradeEntity(UpgradeEntity upgradeEntity)  | 
void | 
UpgradeGroupEntity.setUpgradeEntity(UpgradeEntity entity)  | 
| Modifier and Type | Method and Description | 
|---|---|
UpgradeContext | 
UpgradeContextFactory.create(Cluster cluster,
      UpgradeEntity upgradeEntity)
Creates an  
UpgradeContext which is injected with dependencies. | 
| Constructor and Description | 
|---|
UpgradeContext(Cluster cluster,
              UpgradeEntity upgradeEntity,
              AmbariMetaInfo ambariMetaInfo,
              ConfigHelper configHelper)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
UpgradeEntity | 
Cluster.getUpgradeInProgress()
Gets an  
UpgradeEntity if there is an upgrade in progress or an
 upgrade that has been suspended. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Cluster.setUpgradeEntity(UpgradeEntity upgradeEntity)
Sets or clears the associated upgrade with the cluster. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
UpgradeEntity | 
ClusterImpl.getUpgradeInProgress()
Gets an  
UpgradeEntity if there is an upgrade in progress or an
 upgrade that has been suspended. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ClusterImpl.setUpgradeEntity(UpgradeEntity upgradeEntity)
Sets or clears the associated upgrade with the cluster. 
 | 
Copyright © 2022 Apache Software Foundation. All rights reserved.