Module org.elasticsearch.server
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
-
Constructor Summary
ConstructorsConstructorDescriptionModelNode(WriteLoadForecaster writeLoadForecaster, Metadata metadata, ClusterInfo clusterInfo, RoutingNode routingNode, boolean diskUsageIgnored) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddShard(BalancedShardsAllocator.ProjectIndex index, ShardRouting shard) booleancontainsShard(BalancedShardsAllocator.ProjectIndex projIndex, ShardRouting shard) doubleorg.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndexintIterator<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex> iterator()intintvoidremoveShard(BalancedShardsAllocator.ProjectIndex projectIndex, ShardRouting shard) toString()doubleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ModelNode
public ModelNode(WriteLoadForecaster writeLoadForecaster, Metadata metadata, ClusterInfo clusterInfo, RoutingNode routingNode, boolean diskUsageIgnored)
-
-
Method Details
-
getIndex
public org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex getIndex(BalancedShardsAllocator.ProjectIndex index) -
getNodeId
-
getRoutingNode
-
numShards
public int numShards() -
numShards
-
writeLoad
public double writeLoad() -
diskUsageInBytes
public double diskUsageInBytes() -
highestPrimary
-
addShard
-
removeShard
-
toString
-
iterator
public Iterator<org.elasticsearch.cluster.routing.allocation.allocator.BalancedShardsAllocator.ModelIndex> iterator() -
containsShard
-