public class StackDirectory extends StackDefinitionDirectory
Modifier and Type | Field and Description |
---|---|
static FilenameFilter |
FILENAME_FILTER |
static String |
KERBEROS_DESCRIPTOR_PRECONFIGURE_FILE_NAME
The filename for a Kerberos descriptor preconfigure file at either the stack or service level
|
static String |
LIB_FOLDER_NAME
Allows stacks to provide their own JARs, such as those which implement
classes in the SPI.
|
static String |
RCO_FILE_NAME |
static String |
SERVICE_ADVISOR_FILE_NAME |
static String |
SERVICE_ALERT_FILE_NAME |
static String |
SERVICE_CONFIG_FILE_NAME_POSTFIX |
static String |
SERVICE_CONFIG_FOLDER_NAME |
static String |
SERVICE_METRIC_FILE_NAME |
static String |
SERVICE_PROPERTIES_FOLDER_NAME |
static String |
SERVICE_QUICKLINKS_CONFIGURATIONS_FOLDER_NAME |
static String |
SERVICE_THEME_FILE_NAME
Filename for theme file at service layer
|
static String |
SERVICE_THEMES_FOLDER_NAME |
CONFIG_UPGRADE_XML_FILENAME_PREFIX, directory, XML_FILENAME_FILTER
Constructor and Description |
---|
StackDirectory(String directory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ConfigUpgradePack |
getConfigUpgradePack() |
String |
getKerberosDescriptorPreconfigureFilePath()
Obtain the path to the (stack-level) Kerberos descriptor pre-configuration file
|
URLClassLoader |
getLibraryClassLoader()
Gets the
ClassLoader that can be used to load classes found in JARs
in the stack's library folder. |
String |
getLibraryPath()
Gets the fully qualified path to the stack's library directory.
|
StackMetainfoXml |
getMetaInfoFile()
Obtain the object representation of the stack metainfo.xml file.
|
String |
getRcoFilePath()
Obtain the rco file path.
|
String |
getRepoDir()
Obtain the repository directory path.
|
RepositoryXml |
getRepoFile()
Obtain the repository file object representation.
|
StackRoleCommandOrder |
getRoleCommandOrder()
Obtain the object representation of the stack role_command_order.json file
|
Collection<ServiceDirectory> |
getServiceDirectories()
Obtain a collection of all service directories.
|
String |
getStackDirName()
Obtain the stack directory name.
|
Map<String,UpgradePack> |
getUpgradePacks()
Obtain a map of all upgrade packs.
|
String |
getUpgradesDir()
Obtain the upgrades directory path.
|
getAbsolutePath, getConfigurationDirectory, getDirectory, getName, getPath
public static final String SERVICE_CONFIG_FOLDER_NAME
public static final String SERVICE_PROPERTIES_FOLDER_NAME
public static final String SERVICE_THEMES_FOLDER_NAME
public static final String SERVICE_QUICKLINKS_CONFIGURATIONS_FOLDER_NAME
public static final String SERVICE_CONFIG_FILE_NAME_POSTFIX
public static final String RCO_FILE_NAME
public static final String SERVICE_METRIC_FILE_NAME
public static final String SERVICE_ALERT_FILE_NAME
public static final String SERVICE_ADVISOR_FILE_NAME
public static final String LIB_FOLDER_NAME
public static final String KERBEROS_DESCRIPTOR_PRECONFIGURE_FILE_NAME
public static final String SERVICE_THEME_FILE_NAME
public static final FilenameFilter FILENAME_FILTER
public StackDirectory(String directory) throws org.apache.ambari.server.AmbariException
directory
- stack directoryorg.apache.ambari.server.AmbariException
- if unable to parse the stack directorypublic String getStackDirName()
public String getUpgradesDir()
public String getRcoFilePath()
public String getLibraryPath()
public String getKerberosDescriptorPreconfigureFilePath()
public String getRepoDir()
public RepositoryXml getRepoFile()
public StackMetainfoXml getMetaInfoFile()
public Collection<ServiceDirectory> getServiceDirectories()
public Map<String,UpgradePack> getUpgradePacks()
public ConfigUpgradePack getConfigUpgradePack()
public StackRoleCommandOrder getRoleCommandOrder()
@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.Copyright © 2022 Apache Software Foundation. All rights reserved.