public class UpdateActiveRepoVersionOnStartup extends Object
process()
method invoked.
The class is part of management pack support. Management packs can contain services which define
their own (yum/apt/ect) repositories. If a management pack is installed on an Ambari with an existing
cluster, the cluster's repository version entity must be updated with the custom repos provided by the
management pack. The class takes care of this.Constructor and Description |
---|
UpdateActiveRepoVersionOnStartup(ClusterDAO clusterDao,
RepositoryVersionDAO repositoryVersionDao,
RepositoryVersionHelper repositoryVersionHelper,
AmbariMetaInfo metaInfo) |
Modifier and Type | Method and Description |
---|---|
void |
process()
Updates the active
RepositoryVersionEntity for clusters with add-on services defined in management packs. |
@Inject public UpdateActiveRepoVersionOnStartup(ClusterDAO clusterDao, RepositoryVersionDAO repositoryVersionDao, RepositoryVersionHelper repositoryVersionHelper, AmbariMetaInfo metaInfo)
public void process() throws org.apache.ambari.server.AmbariException
RepositoryVersionEntity
for clusters with add-on services defined in management packs.org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.