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:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.context.annotation.ImportAware
,org.springframework.context.EnvironmentAware
Spring
Configuration
class used to construct, configure and initialize a CacheServer
instance
in a Spring application context.- Since:
- 1.9.0
- See Also:
-
Cache
CacheServer
Bean
Configuration
AddCacheServerConfiguration
AddCacheServersConfiguration
CacheServerConfigurer
EnableCacheServer
EnableCacheServers
PeerCacheConfiguration
CacheServerFactoryBean
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final boolean
protected static final String
static final boolean
Fields inherited from class org.springframework.data.gemfire.config.annotation.PeerCacheConfiguration
DEFAULT_ENABLE_AUTO_RECONNECT, DEFAULT_USE_CLUSTER_CONFIGURATION
Fields 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_LOCATOR
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureOptional
(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresCacheServer
specific settings.gemfireCacheServer
(org.apache.geode.cache.GemFireCache gemfireCache) Bean declaration for a single,CacheServer
to servecache client
applications.protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected String
protected String
protected Set<org.apache.geode.cache.InterestRegistrationListener>
protected Long
protected Integer
protected Integer
protected Integer
protected Integer
protected Integer
protected Integer
getPort()
protected org.apache.geode.cache.server.ServerLoadProbe
protected Integer
protected Integer
protected String
protected SubscriptionEvictionPolicy
protected Boolean
protected Boolean
protected boolean
toString()
Returns aString
containing the name of the Spring-configured Apache GeodeCacheServer
application 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, useClusterConfiguration, useUDPMembershipMessenger
Methods 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, useBeanFactoryLocator
Methods 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, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
-
Field Details
-
DEFAULT_USE_UDP_MEMBERSHIP_MESSENGER
public static final boolean DEFAULT_USE_UDP_MEMBERSHIP_MESSENGER- See Also:
-
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 public CacheServerFactoryBean gemfireCacheServer(org.apache.geode.cache.GemFireCache gemfireCache) Bean declaration for a single,CacheServer
to servecache client
applications.- Parameters:
gemfireCache
- peerCache
instance in which to add theCacheServer
.- Returns:
- a
CacheServerFactoryBean
used to construct, configure and initialize theCacheServer
instance. - See Also:
-
CacheServerFactoryBean
CacheServer
Cache
-
configureOptional
protected void configureOptional(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresCacheServer
specific settings.- Overrides:
configureOptional
in classAbstractCacheConfiguration
- Parameters:
importMetadata
-AnnotationMetadata
containing cache server meta-data used to configure theCacheServer
.- See Also:
-
AnnotationMetadata
CacheServer
-
getAnnotationType
Returns the cache applicationAnnotation
type pertaining to this configuration.- Overrides:
getAnnotationType
in classPeerCacheConfiguration
- Returns:
- the cache application
Annotation
type used by this application.
-
isAutoStartup
protected boolean isAutoStartup() -
getBindAddress
-
getHostnameForClients
-
getInterestRegistrationListeners
protected Set<org.apache.geode.cache.InterestRegistrationListener> getInterestRegistrationListeners() -
getLoadPollInterval
-
getMaxConnections
-
getMaxMessageCount
-
getMaxThreads
-
getMaxTimeBetweenPings
-
getMessageTimeToLive
-
getPort
-
getServerLoadProbe
protected org.apache.geode.cache.server.ServerLoadProbe getServerLoadProbe() -
getSocketBufferSize
-
getSubscriptionCapacity
-
getSubscriptionDiskStoreName
-
getSubscriptionEvictionPolicy
-
getTcpNoDelay
-
getUseUDPMembershipMessenger
-
toString
Returns aString
containing the name of the Spring-configured Apache GeodeCacheServer
application and data node in the cluster.- Overrides:
toString
in classPeerCacheConfiguration
- Returns:
- a
String
containing the name of the Spring-configured Apache GeodeCacheServer
application and data node in the cluster. - See Also:
-