Class BalancedShardsAllocator.ModelNode

java.lang.Object
org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelNode
All Implemented Interfaces:
Iterable<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex>
Enclosing class:
BalancedShardsAllocator

public static class BalancedShardsAllocator.ModelNode extends Object implements Iterable<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex>
  • Constructor Details

  • Method Details

    • getIndex

      public org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex getIndex(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex index)
    • getNodeId

      public String getNodeId()
    • getRoutingNode

      public RoutingNode getRoutingNode()
    • numShards

      public int numShards()
    • numShards

      public int numShards(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex idx)
    • writeLoad

      public double writeLoad()
    • diskUsageInBytes

      public double diskUsageInBytes()
    • highestPrimary

      public int highestPrimary(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex index)
    • addShard

      public void addShard(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex index, ShardRouting shard)
    • removeShard

      public void removeShard(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex projectIndex, ShardRouting shard)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • iterator

      public Iterator<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex> iterator()
      Specified by:
      iterator in interface Iterable<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex>
    • containsShard

      public boolean containsShard(org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ProjectIndex projIndex, ShardRouting shard)