Class DiskThresholdMonitor
- java.lang.Object
-
- org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor
-
public class DiskThresholdMonitor extends Object
Listens for a node to go over the high watermark and kicks off an empty reroute if it does. Also responsible for logging about nodes that have passed the disk watermarks
-
-
Constructor Summary
Constructors Constructor Description DiskThresholdMonitor(Settings settings, Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client, LongSupplier currentTimeMillisSupplier, RerouteService rerouteService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonNewInfo(ClusterInfo info)protected voidupdateIndicesReadOnly(Set<String> indicesToUpdate, ActionListener<Void> listener, boolean readOnly)
-
-
-
Constructor Detail
-
DiskThresholdMonitor
public DiskThresholdMonitor(Settings settings, Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client, LongSupplier currentTimeMillisSupplier, RerouteService rerouteService)
-
-
Method Detail
-
onNewInfo
public void onNewInfo(ClusterInfo info)
-
updateIndicesReadOnly
protected void updateIndicesReadOnly(Set<String> indicesToUpdate, ActionListener<Void> listener, boolean readOnly)
-
-