Class CacheServerFactoryBean

java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.server.CacheServer>
org.springframework.data.gemfire.server.CacheServerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

public class CacheServerFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.cache.server.CacheServer> implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.SmartLifecycle
Spring FactoryBean used to construct, configure and initialize a CacheServer.
See Also:
  • Constructor Details

    • CacheServerFactoryBean

      public CacheServerFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws IOException
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      IOException
    • applyCacheServerConfigurers

      protected void applyCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
      Null-safe operation to apply the given array of CacheServerConfigurers to this CacheServerFactoryBean.
      Parameters:
      cacheServerConfigurers - array of CacheServerConfigurers applied to this CacheServerFactoryBean.
      See Also:
    • applyCacheServerConfigurers

      protected void applyCacheServerConfigurers(Iterable<CacheServerConfigurer> cacheServerConfigurers)
      Null-safe operation to apply the given Iterable of CacheServerConfigurers to this CacheServerFactoryBean.
      Parameters:
      cacheServerConfigurers - Iterable of CacheServerConfigurers applied to this CacheServerFactoryBean.
      See Also:
    • addCacheServer

      protected org.apache.geode.cache.server.CacheServer addCacheServer(org.apache.geode.cache.Cache cache)
      Adds a CacheServer to the given Cache for server cache clients.
      Parameters:
      cache - Cache used to add a CacheServer.
      Returns:
      the newly added CacheServer.
      See Also:
      • Cache.addCacheServer()
      • CacheServer
    • configure

      protected org.apache.geode.cache.server.CacheServer configure(org.apache.geode.cache.server.CacheServer cacheServer)
      Configures the provided CacheServer with any custom, application-specific configuration.
      Parameters:
      cacheServer - CacheServer to configure.
      Returns:
      the given CacheServer.
      See Also:
      • CacheServer
    • postProcess

      protected org.apache.geode.cache.server.CacheServer postProcess(org.apache.geode.cache.server.CacheServer cacheServer)
      Post-process the CacheServer with any necessary follow-up actions.
      Parameters:
      cacheServer - CacheServer to process.
      Returns:
      the given CacheServer.
      See Also:
      • CacheServer
    • getCompositeCacheServerConfigurer

      protected CacheServerConfigurer getCompositeCacheServerConfigurer()
      Returns a reference to the Composite CacheServerConfigurer used to apply additional configuration to this CacheServerFactoryBean on Spring container initialization.
      Returns:
      the Composite CacheServerConfigurer.
      See Also:
    • getObject

      public org.apache.geode.cache.server.CacheServer getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.server.CacheServer>
    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

      public int getPhase()
      Start at the latest possible moment.
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • stop

      public void stop(Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • setAutoStartup

      public void setAutoStartup(boolean autoStartup)
    • setBindAddress

      public void setBindAddress(String bindAddress)
    • setCache

      public void setCache(org.apache.geode.cache.Cache cache)
    • setCacheServerConfigurers

      public void setCacheServerConfigurers(CacheServerConfigurer... cacheServerConfigurers)
      Null-safe operation to set an array of CacheServerConfigurers used to apply additional configuration to this CacheServerFactoryBean when using Annotation-based configuration.
      Parameters:
      cacheServerConfigurers - array of CacheServerConfigurers used to apply additional configuration to this CacheServerFactoryBean.
      See Also:
    • setCacheServerConfigurers

      public void setCacheServerConfigurers(List<CacheServerConfigurer> cacheServerConfigurers)
      Null-safe operation to set an Iterable of CacheServerConfigurers used to apply additional configuration to this CacheServerFactoryBean when using Annotation-based configuration.
      Parameters:
      cacheServerConfigurers - Iterable of CacheServerConfigurers used to apply additional configuration to this CacheServerFactoryBean.
      See Also:
    • setHostNameForClients

      public void setHostNameForClients(String hostNameForClients)
    • setListeners

      public void setListeners(Set<org.apache.geode.cache.InterestRegistrationListener> listeners)
    • setLoadPollInterval

      public void setLoadPollInterval(long loadPollInterval)
    • setMaxConnections

      public void setMaxConnections(int maxConnections)
    • setMaxMessageCount

      public void setMaxMessageCount(int maxMessageCount)
    • setMaxThreads

      public void setMaxThreads(int maxThreads)
    • setMaxTimeBetweenPings

      public void setMaxTimeBetweenPings(int maxTimeBetweenPings)
    • setMessageTimeToLive

      public void setMessageTimeToLive(int messageTimeToLive)
    • setNotifyBySubscription

      public void setNotifyBySubscription(boolean notifyBySubscription)
    • setPort

      public void setPort(int port)
    • setServerGroups

      public void setServerGroups(String[] serverGroups)
    • setServerLoadProbe

      public void setServerLoadProbe(org.apache.geode.cache.server.ServerLoadProbe serverLoadProbe)
    • setSocketBufferSize

      public void setSocketBufferSize(int socketBufferSize)
    • setSubscriptionCapacity

      public void setSubscriptionCapacity(int subscriptionCapacity)
    • setSubscriptionDiskStore

      public void setSubscriptionDiskStore(String diskStoreName)
    • setSubscriptionEvictionPolicy

      public void setSubscriptionEvictionPolicy(SubscriptionEvictionPolicy evictionPolicy)
    • setTcpNoDelay

      public void setTcpNoDelay(boolean tcpNoDelay)