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
- Author:
- John Blum
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionint
-
Element Details
-
host
String hostConfigures the host/IP address on which the embeddedLocator
service will bind to for accepting connections from clients sendingLocator
requests. 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 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
-