Class ClusterInfo

All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public class ClusterInfo
extends java.lang.Object
implements ToXContentFragment, Writeable
ClusterInfo is an object representing a map of nodes to DiskUsage and a map of shard ids to shard sizes, see InternalClusterInfoService.shardIdentifierFromRouting(String) for the key used in the shardSizes map
  • Field Details

  • Constructor Details

    • ClusterInfo

      protected ClusterInfo()
    • ClusterInfo

      public ClusterInfo​(ImmutableOpenMap<java.lang.String,​DiskUsage> leastAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,​DiskUsage> mostAvailableSpaceUsage, ImmutableOpenMap<java.lang.String,​java.lang.Long> shardSizes, ImmutableOpenMap<ShardRouting,​java.lang.String> routingToDataPath)
      Creates a new ClusterInfo instance.
      leastAvailableSpaceUsage - a node id to disk usage mapping for the path that has the least available space on the node.
      mostAvailableSpaceUsage - a node id to disk usage mapping for the path that has the most available space on the node.
      shardSizes - a shardkey to size in bytes mapping per shard.
      routingToDataPath - the shard routing to datapath mapping
      See Also:
    • ClusterInfo

      public ClusterInfo​(StreamInput in) throws
  • Method Details