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:
-
Annotation
Documented
Inherited
Retention
Target
Locator
Configuration
Import
LocatorApplicationConfiguration
GemfireBeanFactoryLocator
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures the hostname or IP address on which theLocator
will bind to for accepting connections from clients sendingLocator
requests.Configures thehostname
used by clients connecting to thisLocator
.Configures the list ofLocators
defining the cluster to which this SpringLocator
application will connect.Configures the log level used to output log messages at Apache Geode / Pivotal GemFireLocator
runtime.Configures thename
of theLocator
application.int
Configures the port on which the embeddedLocator
service will bind to listening for client connections sendingLocator
requests.boolean
Configures theLocator
application with theGemfireBeanFactoryLocator
in order to look up the SpringBeanFactory
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-basedLocator
will pull configuration metadata from the Apache Geode cluster-based, Cluster Configuration Service.boolean
Configures whether to use UDP for membership communication, or TCP.
-
Element Details
-
bindAddress
String bindAddressConfigures the hostname or IP address on which theLocator
will bind to for accepting connections from clients sendingLocator
requests. Defaults to localhost. Use the spring.data.gemfire.locator.bind-address property in Spring Boot application.properties.- Default:
- ""
-
hostnameForClients
String hostnameForClientsConfigures thehostname
used by clients connecting to thisLocator
. Defaults to localhost. Use spring.data.gemfire.locator.hostname-for-clients in Spring Boot application.properties.- Default:
- ""
-
locators
String locatorsConfigures the list ofLocators
defining the cluster to which this SpringLocator
application will connect. Use spring.data.gemfire.locators property in application.properties.- Default:
- ""
-
logLevel
String logLevelConfigures the log level used to output log messages at Apache Geode / Pivotal GemFireLocator
runtime. Defaults to config. Use spring.data.gemfire.locator.log-level property in application.properties.- Default:
- "warn"
-
name
String nameConfigures thename
of theLocator
application. Defaults to SpringBasedLocatorApplication. Use the spring.data.gemfire.locator.name property in Spring Boot application.properties.- Default:
- "SpringBasedLocatorApplication"
-
port
int portConfigures the port on which the embeddedLocator
service will bind to listening for client connections sendingLocator
requests. Defaults to 10334. Use the spring.data.gemfire.locator.port property in Spring Boot application.properties.- Default:
- 10334
-
useBeanFactoryLocator
boolean useBeanFactoryLocatorConfigures theLocator
application with theGemfireBeanFactoryLocator
in order to look up the SpringBeanFactory
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 useClusterConfigurationConfigures whether the Spring-basedLocator
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
-
useUDPMembershipMessenger
boolean useUDPMembershipMessengerConfigures whether to use UDP for membership communication, or TCP. UDP was the old default. TCP is the current default. Use spring.data.gemfire.cache.locator.use-udp-membership-messenger property * in application.properties.- Default:
- false
-