public abstract class AbstractControllerResourceProvider extends AbstractAuthorizedResourceProvider
AbstractResourceProvider.Command<T>keyPropertyIds, LOG, PROPERTIES_ATTRIBUTES_REGEX| Modifier and Type | Method and Description |
|---|---|
protected Long |
getClusterId(String clusterName)
Gets the resource id for the named cluster
|
protected Long |
getClusterResourceId(Long clusterId)
Gets the resource id for the cluster with the specified id
|
protected Long |
getClusterResourceId(String clusterName)
Gets the resource id for the named cluster
|
protected AmbariManagementController |
getManagementController()
Get the associated management controller.
|
static ResourceProvider |
getResourceProvider(Resource.Type type)
Obtain a resource provider based on type.
|
static ResourceProvider |
getResourceProvider(Resource.Type type,
AmbariManagementController managementController)
Factory method for obtaining a resource provider based on a given type and management controller.
|
static void |
init(ResourceProviderFactory factory) |
createResources, createResourcesAuthorized, deleteResources, deleteResourcesAuthorized, getRequiredCreateAuthorizations, getRequiredDeleteAuthorizations, getRequiredGetAuthorizations, getRequiredUpdateAuthorizations, getResourceId, getResources, getResourcesAuthorized, getResourceType, isAuthorizedToCreateResources, isAuthorizedToDeleteResources, isAuthorizedToGetResources, isAuthorizedToUpdateResources, setRequiredCreateAuthorizations, setRequiredDeleteAuthorizations, setRequiredGetAuthorizations, setRequiredUpdateAuthorizations, updateResources, 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, waitcheckPropertyIdspublic static void init(ResourceProviderFactory factory)
protected AmbariManagementController getManagementController()
protected Long getClusterId(String clusterName) throws org.apache.ambari.server.AmbariException
clusterName - the name of the relevant clusterorg.apache.ambari.server.AmbariException - if the named cluster does not existprotected Long getClusterResourceId(String clusterName) throws org.apache.ambari.server.AmbariException
clusterName - the name of the relevant clusterorg.apache.ambari.server.AmbariException - if the named cluster does not existprotected Long getClusterResourceId(Long clusterId) throws org.apache.ambari.server.AmbariException
clusterId - the id of the relevant clusterorg.apache.ambari.server.AmbariException - if the cluster does not existpublic static ResourceProvider getResourceProvider(Resource.Type type, AmbariManagementController managementController)
type - the resource typemanagementController - the management controllerpublic static ResourceProvider getResourceProvider(Resource.Type type)
type - resource provider typeCopyright © 2022 Apache Software Foundation. All rights reserved.