4.6. クエリーの統計
Data Grid は、Search エントリーポイントを介してインデックス化およびクエリー統計を公開します。これは、以下のようにプログラムで使用できます。
// Statistics for the local cluster member SearchStatistics statistics = Search.getSearchStatistics(cache); // Consolidated statistics for the whole cluster CompletionStage<SearchStatisticsSnapshot> statistics = Search.getClusteredSearchStatistics(cache)
// Statistics for the local cluster member
SearchStatistics statistics = Search.getSearchStatistics(cache);
// Consolidated statistics for the whole cluster
CompletionStage<SearchStatisticsSnapshot> statistics = Search.getClusteredSearchStatistics(cache)
REST による統計
Data Grid Server は、REST エンドポイントを介してインデックスおよびクエリー統計も公開します。
GET /v2/caches/{cacheName}/search/stats の呼び出しを使用します。