クラス MongoHealthIndicator
java.lang.ObjectSE
org.springframework.boot.health.contributor.AbstractHealthIndicator
org.springframework.boot.mongodb.health.MongoHealthIndicator
- 実装されているすべてのインターフェース:
HealthContributor, HealthIndicator
MongoDB のステータス情報を返す
HealthIndicator のシンプルな実装。- 導入:
- 4.0.0
- 作成者:
- Christian Dupuis
コンストラクターの詳細
MongoHealthIndicator
public MongoHealthIndicator(com.mongodb.client.MongoClient mongoClient)
メソッドの詳細
doHealthCheck
クラスからコピーされた説明:AbstractHealthIndicator実際のヘルスチェックロジック。- 次で指定:
- クラス
AbstractHealthIndicatorのdoHealthCheck - パラメーター:
builder-Health.Builderを使用して、ヘルスステータスと詳細を報告する- 例外:
ExceptionSE-Status.DOWNシステムステータスを作成するExceptionSE。