public class StackServiceDirectory extends ServiceDirectory
CHECKS_FOLDER_NAME, checksDir, PACKAGE_FOLDER_NAME, packageDir, SERVER_ACTIONS_FOLDER_NAME, serverActionsDir, SERVICES_FOLDER_NAME, UPGRADES_FOLDER_NAME, upgradesDirCONFIG_UPGRADE_XML_FILENAME_PREFIX, directory, XML_FILENAME_FILTER| Constructor and Description |
|---|
StackServiceDirectory(String servicePath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdvisorName(String serviceName)
Obtain the advisor name.
|
String |
getRepoDir()
Obtain the repository directory if exists or null
|
RepositoryXml |
getRepoFile()
Obtain the repository xml file if exists or null
|
protected File |
getResourcesDirectory() |
String |
getService() |
String |
getStack() |
protected void |
parsePath()
Parse the service directory.
|
calculateChecksDirectory, calculateDirectories, calculatePackageDirectory, calculateServerActionsDirectory, calculateUpgradesDirectory, getAdvisorFile, getAlertsFile, getChecksDir, getKerberosDescriptorFile, getMetaInfoFile, getMetricsFile, getPackageDir, getRoleCommandOrder, getServerActionsDir, getThemeFile, getUpgradesDir, getWidgetsDescriptorFile, parseMetaInfoFile, resolveDirectory, resolveRelativeDirectoryPathStringgetAbsolutePath, getConfigurationDirectory, getDirectory, getName, getPathpublic StackServiceDirectory(String servicePath) throws org.apache.ambari.server.AmbariException
servicePath - path of the service directoryorg.apache.ambari.server.AmbariException - if unable to parse the service directory@Nullable public RepositoryXml getRepoFile()
@Nullable public String getRepoDir()
public String getAdvisorName(String serviceName)
getAdvisorName in class ServiceDirectoryprotected void parsePath()
throws org.apache.ambari.server.AmbariException
ServiceDirectoryparsePath in class ServiceDirectoryorg.apache.ambari.server.AmbariExceptionprotected File getResourcesDirectory()
getResourcesDirectory in class ServiceDirectorypublic String getService()
getService in class ServiceDirectorypublic String getStack()
getStack in class ServiceDirectoryCopyright © 2022 Apache Software Foundation. All rights reserved.