public class StackServiceDirectory extends ServiceDirectory
CHECKS_FOLDER_NAME, checksDir, PACKAGE_FOLDER_NAME, packageDir, SERVER_ACTIONS_FOLDER_NAME, serverActionsDir, SERVICES_FOLDER_NAME, UPGRADES_FOLDER_NAME, upgradesDir
CONFIG_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, resolveRelativeDirectoryPathString
getAbsolutePath, getConfigurationDirectory, getDirectory, getName, getPath
public 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 ServiceDirectory
protected void parsePath() throws org.apache.ambari.server.AmbariException
ServiceDirectory
parsePath
in class ServiceDirectory
org.apache.ambari.server.AmbariException
protected File getResourcesDirectory()
getResourcesDirectory
in class ServiceDirectory
public String getService()
getService
in class ServiceDirectory
public String getStack()
getStack
in class ServiceDirectory
Copyright © 2022 Apache Software Foundation. All rights reserved.