public class StackInfo extends Object implements Comparable<StackInfo>, Validable
| Constructor and Description |
|---|
StackInfo() |
public String getMinJdk()
public void setMinJdk(String minJdk)
public String getMaxJdk()
public void setMaxJdk(String maxJdk)
public void setReleaseVersionClass(String className)
public boolean isValid()
public void setValid(boolean valid)
public Collection<String> getErrors()
public void addErrors(Collection<String> errors)
public String getName()
public void setName(String name)
public String getVersion()
public void setVersion(String version)
public List<RepositoryInfo> getRepositories()
public com.google.common.collect.ListMultimap<String,RepositoryInfo> getRepositoriesByOs()
public Collection<ServiceInfo> getServices()
public ServiceInfo getService(String name)
public void setServices(Collection<ServiceInfo> services)
public Collection<ExtensionInfo> getExtensions()
public ExtensionInfo getExtension(String name)
public ExtensionInfo getExtensionByService(String serviceName)
public void addExtension(ExtensionInfo extension)
public void removeExtension(ExtensionInfo extension)
public List<PropertyInfo> getProperties()
public void setProperties(List<PropertyInfo> properties)
public Map<String,Map<String,Map<String,String>>> getConfigTypeAttributes()
public void setConfigTypeAttributes(String type, Map<String,Map<String,String>> typeAttributes)
type - configuration typetypeAttributes - attributes associated with the typepublic void setAllConfigAttributes(Map<String,Map<String,Map<String,String>>> types)
types - map of type attributespublic StackVersionResponse convertToResponse()
public boolean isActive()
public void setActive(boolean active)
public String getParentStackVersion()
public void setParentStackVersion(String parentStackVersion)
public StackRoleCommandOrder getRoleCommandOrder()
public void setRoleCommandOrder(StackRoleCommandOrder roleCommandOrder)
public String getRcoFileLocation()
public void setRcoFileLocation(String rcoFileLocation)
public String getKerberosDescriptorPreConfigurationFileLocation()
public void setKerberosDescriptorPreConfigurationFileLocation(String kerberosDescriptorPreConfigurationFileLocation)
kerberosDescriptorPreConfigurationFileLocation - a String containing the path to the stack-level Kerberos
descriptor filepublic void setUpgradesFolder(String path)
path - the path to the upgrades directorypublic String getUpgradesFolder()
null if not setpublic Map<String,UpgradePack> getUpgradePacks()
null if no packspublic void setUpgradePacks(Map<String,UpgradePack> upgradePacks)
upgradePacks - map of upgrade packspublic ConfigUpgradePack getConfigUpgradePack()
public void setConfigUpgradePack(ConfigUpgradePack configUpgradePack)
configUpgradePack - config upgrade pack for stack or null if it is
not definedpublic int compareTo(StackInfo o)
compareTo in interface Comparable<StackInfo>public Map<String,PropertyInfo> getRequiredProperties()
public Map<PropertyInfo.PropertyType,Set<String>> getConfigPropertiesTypes(String configType)
public Map<String,Map<String,String>> getDefaultConfigAttributesForConfigType(String configType)
configType - config typepublic void addVersionDefinition(String key, VersionDefinitionXml xml)
key - the version that the xml representsxml - the version definition objectpublic Collection<VersionDefinitionXml> getVersionDefinitions()
public void setRepositoryXml(RepositoryXml rxml)
rxml - the repository xml objectpublic RepositoryXml getRepositoryXml()
null if it couldn't be loadedpublic void setLatestVersionDefinition(VersionDefinitionXml xml)
xml - the version definition parsed from LatestRepoCallablepublic VersionDefinitionXml getLatestVersionDefinition()
xml - the version definition parsed from LatestRepoCallablepublic RefreshCommandConfiguration getRefreshCommandConfiguration()
public void setRefreshCommandConfiguration(RefreshCommandConfiguration refreshCommandConfiguration)
public org.apache.ambari.spi.stack.StackReleaseVersion getReleaseVersion()
StackReleaseVersion. If not specified
or there is an error instantiating the class, return a default implementation.@Nullable public URLClassLoader getLibraryClassLoader()
ClassLoader that can be used to load classes found in JARs
in the stack's library folder.null if there are no libraries for this stack.public void setLibraryClassLoader(URLClassLoader libraryClassLoader)
ClassLoader that can be used to load classes found in JARs
in the stack's library folder.libraryClassLoader - the class loader.public <T> T getLibraryInstance(String className) throws Exception
className - the name of the class to get an instanceException - when the class cannot be loaded or instantiatedpublic <T> T getLibraryInstance(com.google.inject.Injector injector,
String className)
throws Exception
injector - the injector to use, or null to invoke the default, no-arg
constructorclassName - the name of the class to get an instanceException - when the class cannot be loaded or instantiatedCopyright © 2022 Apache Software Foundation. All rights reserved.