@TargetSE(valueSE=TYPESE) @RetentionSE(valueSE=RUNTIMESE) @InheritedSE @DocumentedSE @Import(value=HttpServiceConfiguration.class) @UsesGemFireProperties public @interface EnableHttpService
EnableHttpService アノテーションは、Spring @Configuration アノテーション付き ClassSE をマークして、Pivotal GemFire/Apache Geode の組み込み HTTP サービスを設定および有効化します。この AnnotationSE を使用すると、起動時に Pulse、管理 REST API、開発者 REST API などの組み込み HTTP サービスが有効になります。ただし、組み込み Pivotal GemFire/Apache Geode HTTP サービスとすべての依存サービス (Pulse など) は、この AnnotationSE が存在する場合でも、spring.data.gemfire.service.http.enabled プロパティを使用して application.properties で外部的に有効化 / 無効化できるため、トグルとして機能します。AnnotationSE, Import, HttpServiceConfiguration, Apache Geode 向け REST アプリケーションの開発| 修飾子と型 | オプションの要素と説明 |
|---|---|
StringSE | bindAddress 設定されている場合、Pivotal GemFire メンバーは埋め込まれた HTTP サービスを指定されたアドレスにバインドします。 |
int | port ゼロ以外の場合、Pivotal GemFire はこのポートでリッスンする埋め込み HTTP サービスを開始します。 |
boolean | sslRequireAuthenticationHTTP サービス接続に認証が必要かどうかを示すブール値。 |
boolean | startDeveloperRestApitrue に設定すると、キャッシュの作成時に Developer REST API サービスが開始されます。 |
public abstract StringSE bindAddress
public abstract int port
public abstract boolean sslRequireAuthentication
EnableSsl アノテーションを使用し、EnableSsl.components() に org.springframework.data.gemfire.config.annotation.EnableSsl.Component#HTTP が含まれるように設定します。デフォルトは false です。application.properties の spring.data.gemfire.service.http.ssl-require-authentication プロパティを使用します。public abstract boolean startDeveloperRestApi
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.