public interface UpgradeContextFactory
UpgradeContextFactory is used to create dependency-injected
instances of UpgradeContexts.| Modifier and Type | Method and Description |
|---|---|
UpgradeContext |
create(Cluster cluster,
Map<String,Object> upgradeRequestMap)
Creates an
UpgradeContext which is injected with dependencies. |
UpgradeContext |
create(Cluster cluster,
UpgradeEntity upgradeEntity)
Creates an
UpgradeContext which is injected with dependencies. |
UpgradeContext create(Cluster cluster, Map<String,Object> upgradeRequestMap) throws org.apache.ambari.server.AmbariException
UpgradeContext which is injected with dependencies.cluster - the cluster that the upgrade is for (not null).upgradeRequestMap - the original map of parameters used to create the upgrade (not
null).UpgradeContext.org.apache.ambari.server.AmbariExceptionUpgradeContext create(Cluster cluster, UpgradeEntity upgradeEntity)
UpgradeContext which is injected with dependencies.cluster - the cluster that the upgrade is for (not null).upgradeEntity - the upgrade entity (not null).UpgradeContext.Copyright © 2022 Apache Software Foundation. All rights reserved.