Class 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

@Configuration public class CacheServerConfiguration extends PeerCacheConfiguration
Spring Configuration class used to construct, configure and initialize a CacheServer instance in a Spring application context.
Since:
1.9.0
See Also:
  • Field Details

  • 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 serve cache client applications.
      Parameters:
      gemfireCache - peer Cache instance in which to add the CacheServer.
      Returns:
      a CacheServerFactoryBean used to construct, configure and initialize the CacheServer instance.
      See Also:
    • configureOptional

      protected void configureOptional(org.springframework.core.type.AnnotationMetadata importMetadata)
      Configures CacheServer specific settings.
      Overrides:
      configureOptional in class AbstractCacheConfiguration
      Parameters:
      importMetadata - AnnotationMetadata containing cache server meta-data used to configure the CacheServer.
      See Also:
      • AnnotationMetadata
      • CacheServer
    • getAnnotationType

      protected Class<? extends Annotation> getAnnotationType()
      Returns the cache application Annotation type pertaining to this configuration.
      Overrides:
      getAnnotationType in class PeerCacheConfiguration
      Returns:
      the cache application Annotation type used by this application.
    • isAutoStartup

      protected boolean isAutoStartup()
    • getBindAddress

      protected String getBindAddress()
    • getHostnameForClients

      protected String getHostnameForClients()
    • getInterestRegistrationListeners

      protected Set<org.apache.geode.cache.InterestRegistrationListener> getInterestRegistrationListeners()
    • getLoadPollInterval

      protected Long getLoadPollInterval()
    • getMaxConnections

      protected Integer getMaxConnections()
    • getMaxMessageCount

      protected Integer getMaxMessageCount()
    • getMaxThreads

      protected Integer getMaxThreads()
    • getMaxTimeBetweenPings

      protected Integer getMaxTimeBetweenPings()
    • getMessageTimeToLive

      protected Integer getMessageTimeToLive()
    • getPort

      protected Integer getPort()
    • getServerLoadProbe

      protected org.apache.geode.cache.server.ServerLoadProbe getServerLoadProbe()
    • getSocketBufferSize

      protected Integer getSocketBufferSize()
    • getSubscriptionCapacity

      protected Integer getSubscriptionCapacity()
    • getSubscriptionDiskStoreName

      protected String getSubscriptionDiskStoreName()
    • getSubscriptionEvictionPolicy

      protected SubscriptionEvictionPolicy getSubscriptionEvictionPolicy()
    • getTcpNoDelay

      protected Boolean getTcpNoDelay()
    • toString

      public String toString()
      Returns a String containing the name of the Spring-configured Apache Geode CacheServer application and data node in the cluster.
      Overrides:
      toString in class PeerCacheConfiguration
      Returns:
      a String containing the name of the Spring-configured Apache Geode CacheServer application and data node in the cluster.
      See Also: