Module org.elasticsearch.server
Class AllocationStatsService
java.lang.Object
org.elasticsearch.cluster.routing.allocation.AllocationStatsService
Exposes cluster allocation metrics. Constructs
NodeAllocationStats
per node, on demand.-
Constructor Summary
ConstructorsConstructorDescriptionAllocationStatsService
(ClusterService clusterService, ClusterInfoService clusterInfoService, ShardsAllocator shardsAllocator, NodeAllocationStatsAndWeightsCalculator nodeAllocationStatsAndWeightsCalculator) -
Method Summary
-
Constructor Details
-
AllocationStatsService
public AllocationStatsService(ClusterService clusterService, ClusterInfoService clusterInfoService, ShardsAllocator shardsAllocator, NodeAllocationStatsAndWeightsCalculator nodeAllocationStatsAndWeightsCalculator)
-
-
Method Details
-
stats
Returns a map of node IDs to node allocation stats.
-