public abstract class AbstractControllerResourceProvider extends AbstractResourceProvider
AbstractResourceProvider.Command<T>
LOG
Modifier | Constructor and Description |
---|---|
protected |
AbstractControllerResourceProvider(Set<String> propertyIds,
Map<Resource.Type,String> keyPropertyIds,
AmbariManagementController managementController)
Create a new resource provider for the given management controller.
|
Modifier and Type | Method and Description |
---|---|
protected AmbariManagementController |
getManagementController()
Get the associated management controller.
|
protected static Object |
getQueryParameterValue(String queryParameterId,
Predicate predicate)
Extracting given query_parameter value from the predicate
|
static ResourceProvider |
getResourceProvider(Resource.Type type,
Set<String> propertyIds,
Map<Resource.Type,String> keyPropertyIds,
AmbariManagementController managementController)
Factory method for obtaining a resource provider based on a given type and management controller.
|
static void |
init(ResourceProviderFactory factory) |
addObserver, createResources, getConfigurationRequest, getKeyPropertyIds, getPKPropertyIds, getPropertyMaps, getPropertyMaps, getRequestStatus, getRequestStatus, getResources, modifyResources, notifyCreate, notifyDelete, notifyUpdate, updateObservers
checkConfigPropertyIds, checkPropertyIds, containsArguments, getPropertyIds, getRegexGroups, getRegExpKey, getRequestPropertyIds, isPatternKey, setResourceProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPropertyIds, createResources, deleteResources, getResources, updateResources
protected AbstractControllerResourceProvider(Set<String> propertyIds, Map<Resource.Type,String> keyPropertyIds, AmbariManagementController managementController)
propertyIds
- the property idskeyPropertyIds
- the key property idsmanagementController
- the management controllerpublic static void init(ResourceProviderFactory factory)
protected AmbariManagementController getManagementController()
public static ResourceProvider getResourceProvider(Resource.Type type, Set<String> propertyIds, Map<Resource.Type,String> keyPropertyIds, AmbariManagementController managementController)
type
- the resource typepropertyIds
- the property idsmanagementController
- the management controllerCopyright © 2014. All rights reserved.