Class LocatorFactoryBean

java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator>
org.springframework.data.gemfire.LocatorFactoryBean
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.FactoryBean<org.apache.geode.distributed.Locator>, org.springframework.beans.factory.InitializingBean

public class LocatorFactoryBean extends AbstractFactoryBeanSupport<org.apache.geode.distributed.Locator> implements org.springframework.beans.factory.InitializingBean
Spring FactoryBean used to configure, bootstrap and initialize an Apache Geode Locator using the LocatorLauncher class.
Since:
2.2.0
See Also:
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
    • DEFAULT_LOG_LEVEL

      public static final String DEFAULT_LOG_LEVEL
    • LOG_LEVEL_PROPERTY

      public static final String LOG_LEVEL_PROPERTY
  • Constructor Details

    • LocatorFactoryBean

      public LocatorFactoryBean()
  • Method Details

    • afterPropertiesSet

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

      protected void applyLocatorConfigurers()
    • applyLocatorConfigurers

      protected void applyLocatorConfigurers(LocatorConfigurer... locatorConfigurers)
    • applyLocatorConfigurers

      protected void applyLocatorConfigurers(Iterable<LocatorConfigurer> locatorConfigurers)
    • init

      public void init()
    • configureGemfireProperties

      protected org.apache.geode.distributed.LocatorLauncher.Builder configureGemfireProperties(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder)
    • initializeBeanFactoryLocator

      protected void initializeBeanFactoryLocator()
    • newLocatorLauncherBuilder

      @NonNull protected org.apache.geode.distributed.LocatorLauncher.Builder newLocatorLauncherBuilder()
    • postProcess

      protected org.apache.geode.distributed.LocatorLauncher.Builder postProcess(org.apache.geode.distributed.LocatorLauncher.Builder locatorBuilder)
    • postProcess

      protected org.apache.geode.distributed.LocatorLauncher postProcess(org.apache.geode.distributed.LocatorLauncher locatorLauncher)
    • getLocator

      @Nullable public org.apache.geode.distributed.Locator getLocator()
    • getLocatorLauncher

      @Nullable public org.apache.geode.distributed.LocatorLauncher getLocatorLauncher()
    • getObject

      @NonNull public org.apache.geode.distributed.Locator getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.distributed.Locator>
      Throws:
      Exception
    • getObjectType

      @NonNull public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.geode.distributed.Locator>
    • setBindAddress

      public void setBindAddress(@Nullable String bindAddress)
    • getBindAddress

      public Optional<String> getBindAddress()
    • getCompositeLocatorConfigurer

      @NonNull public LocatorConfigurer getCompositeLocatorConfigurer()
    • setGemFireProperties

      public void setGemFireProperties(@Nullable Properties gemfireProperties)
    • getGemFireProperties

      @NonNull public Properties getGemFireProperties()
    • setHostnameForClients

      public void setHostnameForClients(@Nullable String hostnameForClients)
    • getHostnameForClients

      public Optional<String> getHostnameForClients()
    • setLocatorConfigurers

      public void setLocatorConfigurers(LocatorConfigurer... locatorConfigurers)
    • setLocatorConfigurers

      public void setLocatorConfigurers(List<LocatorConfigurer> locatorConfigurers)
    • setLocators

      public void setLocators(@Nullable String locators)
    • getLocators

      public Optional<String> getLocators()
    • setLogLevel

      public void setLogLevel(@Nullable String logLevel)
    • getLogLevel

      @NonNull public String getLogLevel()
    • setName

      public void setName(@Nullable String name)
    • getName

      public Optional<String> getName()
    • setPort

      public void setPort(@NonNull Integer port)
    • getPort

      @NonNull public Integer getPort()
    • setUseBeanFactoryLocator

      public void setUseBeanFactoryLocator(boolean useBeanFactoryLocator)
    • isUseBeanFactoryLocator

      public boolean isUseBeanFactoryLocator()
    • setUseClusterConfigurationService

      public void setUseClusterConfigurationService(boolean useClusterConfigurationService)
    • isUseClusterConfigurationService

      public boolean isUseClusterConfigurationService()
    • setUseUDPMembershipMessenger

      public void setUseUDPMembershipMessenger(boolean useUDPMembershipMessenger)
    • isUseUDPMembershipMessenger

      public boolean isUseUDPMembershipMessenger()