public class StackExtensionHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HOOKS_FOLDER_NAME |
Constructor and Description |
---|
StackExtensionHelper(File stackRoot)
Note: constructor does not perform inialisation now.
|
Modifier and Type | Method and Description |
---|---|
void |
fillInfo()
Must be manually called after creation of StackExtensionHelper instance
|
List<ServiceInfo> |
getAllApplicableServices(StackInfo stackInfo) |
List<StackInfo> |
getAllAvailableStacks() |
List<StackInfo> |
getParents(StackInfo stackInfo) |
String |
resolveHooksFolder(StackInfo stackInfo)
Determines exact hooks folder (subpath from stackRoot to hooks directory)
to use for a given stack.
|
static <T> T |
unmarshal(Class<T> clz,
File file) |
public static final String HOOKS_FOLDER_NAME
public StackExtensionHelper(File stackRoot)
public void fillInfo() throws Exception
Exception
public List<ServiceInfo> getAllApplicableServices(StackInfo stackInfo)
public String resolveHooksFolder(StackInfo stackInfo) throws AmbariException
stackInfo
- stack to work withAmbariException
public static <T> T unmarshal(Class<T> clz, File file) throws JAXBException
JAXBException
Copyright © 2015. All rights reserved.