public class StackAdvisorHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
StackAdvisorHelper(Configuration conf,
StackAdvisorRunner saRunner,
AmbariMetaInfo metaInfo,
AmbariServerConfigurationHandler ambariServerConfigurationHandler,
com.google.gson.Gson gson) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches(Set<String> hostNames) |
void |
clearCaches(String hostName) |
protected String |
getHash(StackAdvisorRequest request) |
RecommendationResponse |
recommend(StackAdvisorRequest request)
Returns recommendation (component-layout or configurations) based on the
request.
|
ValidationResponse |
validate(StackAdvisorRequest request)
Returns validation (component-layout or configurations) result for the
request.
|
@Inject public StackAdvisorHelper(Configuration conf, StackAdvisorRunner saRunner, AmbariMetaInfo metaInfo, AmbariServerConfigurationHandler ambariServerConfigurationHandler, com.google.gson.Gson gson) throws IOException
IOException
public ValidationResponse validate(StackAdvisorRequest request) throws StackAdvisorException
request
- the validation requestValidationResponse
instanceStackAdvisorException
- in case of stack advisor script errorspublic RecommendationResponse recommend(StackAdvisorRequest request) throws StackAdvisorException, org.apache.ambari.server.AmbariException
request
- the recommendation requestRecommendationResponse
instanceStackAdvisorException
- in case of stack advisor script errorsorg.apache.ambari.server.AmbariException
protected String getHash(StackAdvisorRequest request)
public void clearCaches(String hostName)
Copyright © 2022 Apache Software Foundation. All rights reserved.