Class CacheServerConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration
org.springframework.data.gemfire.config.annotation.CacheServerConfiguration
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,ImportAware,EnvironmentAware
Spring
Configuration class used to construct, configure and initialize a CacheServer instance
in a Spring application context.- Since:
- 1.9.0
- Author:
- John Blum
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsFields inherited from class org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration
DEFAULT_ENABLE_AUTO_RECONNECT, DEFAULT_USE_CLUSTER_CONFIGURATIONFields inherited from class org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
DEFAULT_CLOSE, DEFAULT_COPY_ON_READ, DEFAULT_LOCATORS, DEFAULT_LOG_LEVEL, DEFAULT_MCAST_PORT, DEFAULT_USE_BEAN_FACTORY_LOCATORFields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureOptional(AnnotationMetadata importMetadata) ConfiguresCacheServerspecific settings.gemfireCacheServer(GemFireCache gemfireCache) Bean declaration for a single,CacheServerto servecache clientapplications.protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected Stringprotected Stringprotected Set<InterestRegistrationListener>protected Longprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected IntegergetPort()protected ServerLoadProbeprotected Integerprotected Integerprotected Stringprotected SubscriptionEvictionPolicyprotected Booleanprotected booleantoString()Returns aStringcontaining the name of the Spring-configured Apache GeodeCacheServerapplication and data node in the cluster.Methods inherited from class org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration
configureCache, enableAutoReconnect, gemfireCache, lockLease, lockTimeout, messageSyncInterval, newCacheFactoryBean, searchTimeout, useClusterConfigurationMethods inherited from class org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration
add, configureCacheFactoryBean, configureInfrastructure, constructCacheFactoryBean, gemfireProperties, getCacheXml, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getTransactionListeners, getTransactionWriter, isCacheServerApplication, isCacheServerOrPeerCacheApplication, isClientCacheApplication, isClientPeerOrServerCacheApplication, isClose, isPeerCacheApplication, isTypedCacheApplication, locators, logLevel, mcastPort, name, setImportMetadata, startLocator, useBeanFactoryLocatorMethods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
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
-
Field Details
-
DEFAULT_AUTO_STARTUP
protected static final boolean DEFAULT_AUTO_STARTUP- See Also:
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
CacheServerConfiguration
public CacheServerConfiguration()
-
-
Method Details
-
gemfireCacheServer
Bean declaration for a single,CacheServerto servecache clientapplications.- Parameters:
gemfireCache- peerCacheinstance in which to add theCacheServer.- Returns:
- a
CacheServerFactoryBeanused to construct, configure and initialize theCacheServerinstance. - See Also:
-
configureOptional
ConfiguresCacheServerspecific settings.- Overrides:
configureOptionalin classAbstractCacheConfiguration- Parameters:
importMetadata-AnnotationMetadatacontaining cache server meta-data used to configure theCacheServer.- See Also:
-
getAnnotationType
Returns the cache applicationAnnotationtype pertaining to this configuration.- Overrides:
getAnnotationTypein classPeerCacheConfiguration- Returns:
- the cache application
Annotationtype used by this application.
-
isAutoStartup
protected boolean isAutoStartup() -
getBindAddress
-
getHostnameForClients
-
getInterestRegistrationListeners
-
getLoadPollInterval
-
getMaxConnections
-
getMaxMessageCount
-
getMaxThreads
-
getMaxTimeBetweenPings
-
getMessageTimeToLive
-
getPort
-
getServerLoadProbe
-
getSocketBufferSize
-
getSubscriptionCapacity
-
getSubscriptionDiskStoreName
-
getSubscriptionEvictionPolicy
-
getTcpNoDelay
-
toString
Returns aStringcontaining the name of the Spring-configured Apache GeodeCacheServerapplication and data node in the cluster.- Overrides:
toStringin classPeerCacheConfiguration- Returns:
- a
Stringcontaining the name of the Spring-configured Apache GeodeCacheServerapplication and data node in the cluster. - See Also:
-