public class ElasticsearchHealthIndicator extends AbstractHealthIndicator
HealthIndicator
。コンストラクターと説明 |
---|
ElasticsearchHealthIndicator(org.elasticsearch.client.Client client, long responseTimeout, ListSE<StringSE> indices) 新しい ElasticsearchHealthIndicator インスタンスを作成します。 |
ElasticsearchHealthIndicator(org.elasticsearch.client.Client client, long responseTimeout, StringSE... indices) 新しい ElasticsearchHealthIndicator インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
protected void | doHealthCheck(Health.Builder builder) 実際のヘルスチェックロジック。 |
health
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ElasticsearchHealthIndicator(org.elasticsearch.client.Client client, long responseTimeout, ListSE<StringSE> indices)
ElasticsearchHealthIndicator
インスタンスを作成します。client
- Elasticsearch クライアント responseTimeout
- ミリ秒単位のリクエストタイムアウト indices
- チェックするインデックス public ElasticsearchHealthIndicator(org.elasticsearch.client.Client client, long responseTimeout, StringSE... indices)
ElasticsearchHealthIndicator
インスタンスを作成します。client
- Elasticsearch クライアント responseTimeout
- ミリ秒単位のリクエストタイムアウト indices
- チェックするインデックス protected void doHealthCheck(Health.Builder builder) throws ExceptionSE
AbstractHealthIndicator
AbstractHealthIndicator
の doHealthCheck
builder
- Health.Builder
を使用して、ヘルスステータスと詳細を報告する ExceptionSE
- Status.DOWN
システムステータスを作成する Exception
SE。Copyright © 2019 Pivotal Software, Inc.. All rights reserved.