Annotation Interface EnableClusterConfiguration
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(ClusterConfigurationConfiguration.class)
public @interface EnableClusterConfiguration
The
EnableClusterConfiguration
annotation enables Apache Geode / Pivotal GemFire schema object definitions
defined in a Spring [Boot], Apache Geode / Pivotal GemFire ClientCache
application using Spring config
to be pushed to an Apache Geode / Pivotal GemFire cluster, similar to how schema commands (e.g. `create region`)
in Gfsh are processed by an Apache Geode / Pivotal GemFire Manager.- Since:
- 2.0.0
- Author:
- John Blum
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Configures whether to enableClientHttpRequestInterceptor
bean lookup.boolean
Configures whether to follow HTTP redirects when using HTTP.Configures the bind address used by the Spring, GemFire/Geode cache client application to locate the Manager's HTTP Service and access the Management REST API.int
Configures the port used by the Spring, GemFire/Geode cache client application to locate the Manager's HTTP Service and access the Management REST API.boolean
Configures whether the HTTP connection between Spring and Apache Geode or Pivotal GemFire should be secure.Configuration setting used to specify the data management policy used when creatingRegions
on the servers in the Geode/GemFire cluster.boolean
Configures whether connectivity between the Spring, GemFire/Geode application should be established using HTTP.
-
Element Details
-
host
String hostConfigures the bind address used by the Spring, GemFire/Geode cache client application to locate the Manager's HTTP Service and access the Management REST API. This configuration setting is only used whenuseHttp()
is set to true. Alternatively, you can configure this setting using the spring.data.gemfire.management.http.host property in application.properties. Defaults to localhost.- Default:
- "localhost"
-
port
int portConfigures the port used by the Spring, GemFire/Geode cache client application to locate the Manager's HTTP Service and access the Management REST API. This configuration setting is only used whenuseHttp()
is set to true. Alternatively, you can configure this setting using the spring.data.gemfire.management.http.port property in application.properties. Defaults to 7070.- Default:
- 7070
-
enableInterceptors
boolean enableInterceptorsConfigures whether to enableClientHttpRequestInterceptor
bean lookup. IfClientHttpRequestInterceptor
beans are found in the Spring context, then they will be added to the Interceptors on theRestTemplate
when using HTTP. Alternatively, you can configure this setting using the spring.data.gemfire.management.http.enable-interceptors property in application.properties. Defaults to false.- Default:
- false
-
followRedirects
boolean followRedirectsConfigures whether to follow HTTP redirects when using HTTP. Alternatively, you can configure this setting using the spring.data.gemfire.management.http.follow-redirects property in application.properties. Defaults to false.- Default:
- false
-
requireHttps
boolean requireHttpsConfigures whether the HTTP connection between Spring and Apache Geode or Pivotal GemFire should be secure. That is, whether the HTTP connections uses TLS and results in a secure HTTPS connection rather a plain text HTTP connection. Alternatively, you can configure this setting using the spring.data.gemfire.management.require-https property in application.properties. Defaults to true.- Default:
- true
-
serverRegionShortcut
RegionShortcut serverRegionShortcutConfiguration setting used to specify the data management policy used when creatingRegions
on the servers in the Geode/GemFire cluster. The data management policy is expressed with aRegionShortcut
, but corresponds to the various differentDataPolicies
available. Alternatively, you can configure this setting using the spring.data.gemfire.cluster.region.type property in application.properties. Defaults toRegionShortcut.PARTITION
.- Default:
- PARTITION
-
useHttp
boolean useHttpConfigures whether connectivity between the Spring, GemFire/Geode application should be established using HTTP. Alternatively, you can configure this setting using the spring.data.gemfire.management.use-http property in application.properties. Defaults to false.- Default:
- false
-