public class CommonServiceDirectory 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 |
---|
CommonServiceDirectory(String servicePath)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAdvisorName(String serviceName)
Obtain the advisor name.
|
protected File |
getResourcesDirectory() |
String |
getService() |
String |
getStack() |
calculateChecksDirectory, calculateDirectories, calculatePackageDirectory, calculateServerActionsDirectory, calculateUpgradesDirectory, getAdvisorFile, getAlertsFile, getChecksDir, getKerberosDescriptorFile, getMetaInfoFile, getMetricsFile, getPackageDir, getRoleCommandOrder, getServerActionsDir, getThemeFile, getUpgradesDir, getWidgetsDescriptorFile, parseMetaInfoFile, parsePath, resolveDirectory, resolveRelativeDirectoryPathString
getAbsolutePath, getConfigurationDirectory, getDirectory, getName, getPath
public CommonServiceDirectory(String servicePath) throws org.apache.ambari.server.AmbariException
servicePath
- path of the service directoryorg.apache.ambari.server.AmbariException
- if unable to parse the service directorypublic String getAdvisorName(String serviceName)
getAdvisorName
in class ServiceDirectory
public String getService()
getService
in class ServiceDirectory
protected File getResourcesDirectory()
getResourcesDirectory
in class ServiceDirectory
public String getStack()
getStack
in class ServiceDirectory
Copyright © 2022 Apache Software Foundation. All rights reserved.