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:
-
Annotation
Import
LocatorConfiguration
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures the host/IP address on which the embeddedLocator
service will bind to for accepting connections from clients sendingLocator
requests.int
Configures the port on which the embeddedLocator
service will bind to listening for client connections sendingLocator
requests.
-
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
-