Spring Data for VMware GemFire
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:
-
CacheCacheServerBeanConfigurationAddCacheServerConfigurationAddCacheServersConfigurationCacheServerConfigurerEnableCacheServerEnableCacheServersPeerCacheConfigurationCacheServerFactoryBean
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanprotected static final Stringstatic final booleanFields 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
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureOptional(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresCacheServerspecific settings.gemfireCacheServer(org.apache.geode.cache.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<org.apache.geode.cache.InterestRegistrationListener>protected Longprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected IntegergetPort()protected org.apache.geode.cache.server.ServerLoadProbeprotected Integerprotected Integerprotected Stringprotected SubscriptionEvictionPolicyprotected Booleanprotected 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, useClusterConfiguration, useUDPMembershipMessengerMethods 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, 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,CacheServerto servecache clientapplications.- Parameters:
gemfireCache- peerCacheinstance in which to add theCacheServer.- Returns:
- a
CacheServerFactoryBeanused to construct, configure and initialize theCacheServerinstance. - See Also:
-
CacheServerFactoryBeanCacheServerCache
-
configureOptional
protected void configureOptional(org.springframework.core.type.AnnotationMetadata importMetadata) ConfiguresCacheServerspecific settings.- Overrides:
configureOptionalin classAbstractCacheConfiguration- Parameters:
importMetadata-AnnotationMetadatacontaining cache server meta-data used to configure theCacheServer.- See Also:
-
AnnotationMetadataCacheServer
-
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
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 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:
-