public abstract class StackAdvisorResourceProvider extends ReadOnlyResourceProvider
AbstractResourceProvider.Command<T>| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONFIGURATIONS_PROPERTY_ID |
protected static StackAdvisorHelper |
saHelper |
protected static String |
STACK_NAME_PROPERTY_ID |
protected static String |
STACK_VERSION_PROPERTY_ID |
protected static String |
USER_CONTEXT_OPERATION_DETAILS_PROPERTY |
protected static String |
USER_CONTEXT_OPERATION_PROPERTY |
keyPropertyIds, PROPERTIES_ATTRIBUTES_REGEX| Modifier | Constructor and Description |
|---|---|
protected |
StackAdvisorResourceProvider(Resource.Type type,
Set<String> propertyIds,
Map<Resource.Type,String> keyPropertyIds,
AmbariManagementController managementController) |
amendPredicate, createResources, deleteResources, getResources, updateResourcesgetClusterId, getClusterResourceId, getClusterResourceId, getManagementController, getResourceProvider, getResourceProvider, initcreateResourcesAuthorized, deleteResourcesAuthorized, getRequiredCreateAuthorizations, getRequiredDeleteAuthorizations, getRequiredGetAuthorizations, getRequiredUpdateAuthorizations, getResourceId, getResourcesAuthorized, getResourceType, isAuthorizedToCreateResources, isAuthorizedToDeleteResources, isAuthorizedToGetResources, isAuthorizedToUpdateResources, setRequiredCreateAuthorizations, setRequiredDeleteAuthorizations, setRequiredGetAuthorizations, setRequiredUpdateAuthorizations, updateResourcesAuthorizedaddObserver, createResources, getConfigurationRequests, getKeyPropertyIds, getPKPropertyIds, getPropertyMaps, getPropertyMaps, getQueryParameterValue, getRequestStatus, getRequestStatus, getRequestStatus, getResources, modifyResources, notifyCreate, notifyDelete, notifyUpdate, parseProperties, updateObserverscheckCategory, checkConfigPropertyIds, checkPropertyIds, containsArguments, getCategoryIds, getPropertyIds, getRegexEntry, getRegexGroups, getRequestPropertyIds, isPatternKey, isPropertyCategoryRequested, isPropertyEntryRequested, isPropertyRequested, setResourcePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPropertyIdsprotected static final String STACK_NAME_PROPERTY_ID
protected static final String STACK_VERSION_PROPERTY_ID
protected static StackAdvisorHelper saHelper
protected static final String USER_CONTEXT_OPERATION_PROPERTY
protected static final String USER_CONTEXT_OPERATION_DETAILS_PROPERTY
protected static final String CONFIGURATIONS_PROPERTY_ID
protected StackAdvisorResourceProvider(Resource.Type type, Set<String> propertyIds, Map<Resource.Type,String> keyPropertyIds, AmbariManagementController managementController)
@Inject public static void init(StackAdvisorHelper instance, Configuration serverConfig, Clusters clusters, AmbariMetaInfo ambariMetaInfo)
protected abstract String getRequestTypePropertyId()
protected StackAdvisorRequest prepareStackAdvisorRequest(Request request)
protected List<ChangedConfigInfo> calculateChangedConfigurations(Request request)
protected Set<RecommendationResponse.ConfigGroup> calculateConfigGroups(Request request)
protected Set<RecommendationResponse.ConfigGroup> calculateConfigGroups(Cluster cluster, Request request)
protected Map<String,String> readUserContext(Request request)
request - protected Map<String,Map<String,Map<String,String>>> calculateConfigurations(Request request)
protected Map<String,Map<String,Map<String,String>>> calculateConfigurations(Cluster cluster, String serviceName) throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.