public class AddPoolConfiguration extends AbstractAnnotationConfigSupport implements ImportBeanDefinitionRegistrar
AddPoolConfiguration
class is a Spring ImportBeanDefinitionRegistrar
that registers
a PoolFactoryBean
definition for the Pool
configuration meta-data defined in EnablePool
annotations.Pool
,
BeanFactory
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
ImportBeanDefinitionRegistrar
,
AnnotationMetadata
,
PoolFactoryBean
,
AddPoolsConfiguration
,
PoolConfigurer
,
EnablePools
,
EnablePool
,
AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
AddPoolConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected BeanDefinitionBuilder |
configurePoolConnections(String poolName,
AnnotationAttributes enablePoolAttributes,
BeanDefinitionBuilder poolFactoryBean)
Uses the list of Pivotal GemFire Locator and Server connection endpoint definitions and meta-data to configure
the Pivotal GemFire client
Pool used to communicate with the servers
in the Pivotal GemFire cluster. |
protected BeanDefinitionBuilder |
configurePoolLocators(String poolName,
AnnotationAttributes enablePoolAttributes,
BeanDefinitionBuilder poolFactoryBean) |
protected BeanDefinitionBuilder |
configurePoolServers(String poolName,
AnnotationAttributes enablePoolAttributes,
BeanDefinitionBuilder poolFactoryBean) |
protected String |
getAndValidatePoolName(Map<String,Object> enablePoolAttributes) |
protected Class<? extends Annotation> |
getAnnotationType()
Returns the cache application
Annotation type pertaining to this configuration. |
protected ConnectionEndpoint |
newConnectionEndpoint(String host,
Integer port) |
protected ConnectionEndpointList |
parseConnectionEndpoints(AnnotationAttributes enablePoolAttributes,
String arrayAttributeName,
String stringAttributeName,
int defaultPort) |
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry) |
protected void |
registerPoolFactoryBeanDefinition(AnnotationAttributes enablePoolAttributes,
BeanDefinitionRegistry registry)
Registers a
PoolFactoryBean definition in the Spring application context configured with
the EnablePool annotation meta-data. |
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerBeanDefinitions
protected Class<? extends Annotation> getAnnotationType()
AbstractAnnotationConfigSupport
Annotation
type pertaining to this configuration.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type used by this application.public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
protected void registerPoolFactoryBeanDefinition(AnnotationAttributes enablePoolAttributes, BeanDefinitionRegistry registry)
PoolFactoryBean
definition in the Spring application context configured with
the EnablePool
annotation meta-data.enablePoolAttributes
- EnablePool
annotation attributes.registry
- Spring BeanDefinitionRegistry
used to register the PoolFactoryBean
definition.BeanDefinitionRegistry
,
PoolFactoryBean
,
EnablePool
,
Map
protected String getAndValidatePoolName(Map<String,Object> enablePoolAttributes)
protected BeanDefinitionBuilder configurePoolConnections(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
Pool
used to communicate with the servers
in the Pivotal GemFire cluster.enablePoolAttributes
- EnablePool
annotation containing
Pool
Locator/Server connection endpoint meta-data.ClientCacheApplication
,
Map
protected BeanDefinitionBuilder configurePoolLocators(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
protected BeanDefinitionBuilder configurePoolServers(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
protected ConnectionEndpointList parseConnectionEndpoints(AnnotationAttributes enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort)
protected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.