Annotation Interface LocatorApplication


@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented @Configuration @Import(LocatorApplicationConfiguration.class) public @interface LocatorApplication
The LocatorApplication Annotation enables a Spring Data for Apache Geode & Pivotal GemFire application to become a Locator based application.
Since:
2.2.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Configures the hostname or IP address on which the Locator will bind to for accepting connections from clients sending Locator requests.
    Configures the hostname used by clients connecting to this Locator.
    Configures the list of Locators defining the cluster to which this Spring Locator application will connect.
    Configures the log level used to output log messages at Apache Geode / Pivotal GemFire Locator runtime.
    Configures the name of the Locator application.
    int
    Configures the port on which the embedded Locator service will bind to listening for client connections sending Locator requests.
    boolean
    Configures the Locator application with the GemfireBeanFactoryLocator in order to look up the Spring BeanFactory used to auto-wire, configure and initialize Apache Geode components created in a non-Spring managed, Apache Geode context (for example: cache.xml).
    boolean
    Configures whether the Spring-based Locator will pull configuration metadata from the Apache Geode cluster-based, Cluster Configuration Service.
  • Element Details

    • bindAddress

      String bindAddress
      Configures the hostname or IP address on which the Locator will bind to for accepting connections from clients sending Locator requests. Defaults to localhost. Use the spring.data.gemfire.locator.bind-address property in Spring Boot application.properties.
      Default:
      ""
    • hostnameForClients

      String hostnameForClients
      Configures the hostname used by clients connecting to this Locator. Defaults to localhost. Use spring.data.gemfire.locator.hostname-for-clients in Spring Boot application.properties.
      Default:
      ""
    • locators

      String locators
      Configures the list of Locators defining the cluster to which this Spring Locator application will connect. Use spring.data.gemfire.locators property in application.properties.
      Default:
      ""
    • logLevel

      String logLevel
      Configures the log level used to output log messages at Apache Geode / Pivotal GemFire Locator runtime. Defaults to config. Use spring.data.gemfire.locator.log-level property in application.properties.
      Default:
      "warn"
    • name

      String name
      Configures the name of the Locator application. Defaults to SpringBasedLocatorApplication. Use the spring.data.gemfire.locator.name property in Spring Boot application.properties.
      Default:
      "SpringBasedLocatorApplication"
    • port

      int port
      Configures the port on which the embedded Locator service will bind to listening for client connections sending Locator requests. Defaults to 10334. Use the spring.data.gemfire.locator.port property in Spring Boot application.properties.
      Default:
      10334
    • useBeanFactoryLocator

      boolean useBeanFactoryLocator
      Configures the Locator application with the GemfireBeanFactoryLocator in order to look up the Spring BeanFactory used to auto-wire, configure and initialize Apache Geode components created in a non-Spring managed, Apache Geode context (for example: cache.xml). Defaults to false. Use spring.data.gemfire.use-bean-factory-locator property in application.properties.
      Default:
      false
    • useClusterConfiguration

      boolean useClusterConfiguration
      Configures whether the Spring-based Locator will pull configuration metadata from the Apache Geode cluster-based, Cluster Configuration Service. Defaults to false. Use spring.data.gemfire.locator.use-cluster-configuration property in application.properties.
      Default:
      false