Spring Data for VMware GemFire
Annotation Interface EnableLocator
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(LocatorConfiguration.class)
@UsesGemFireProperties
public @interface EnableLocator
The
EnableLocator annotation configures a Spring @Configuration annotated Class
to start an embedded Pivotal GemFire/Apache Geode Locator service in this cluster member.
However, the embedded Pivotal GemFire/Apache Geode Locator service can be enabled/disabled externally
in application.properties with the spring.data.gemfire.service.http.enabled property
even when this Annotation is present, thereby serving as a toggle.- Since:
- 1.9.0
- See Also:
-
AnnotationImportLocatorConfiguration
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures the host/IP address on which the embeddedLocatorservice will bind to for accepting connections from clients sendingLocatorrequests.intConfigures the port on which the embeddedLocatorservice will bind to listening for client connections sendingLocatorrequests.
-
Element Details
-
host
String hostConfigures the host/IP address on which the embeddedLocatorservice will bind to for accepting connections from clients sendingLocatorrequests. Defaults to localhost. Use the spring.data.gemfire.locator.host property in Spring Boot application.properties.- Default:
- "localhost"
-
port
int portConfigures the port on which the embeddedLocatorservice will bind to listening for client connections sendingLocatorrequests. Defaults to 10334. Use the spring.data.gemfire.locator.port property in Spring Boot application.properties.- Default:
- 10334
-