@@ -58,7 +58,7 @@ public final class ClusterStateHealth implements Iterable<ClusterIndexHealth>, W
5858
5959 private final int numberOfNodes ;
6060 private final int numberOfDataNodes ;
61- private final boolean hasDiscoveredMaster ;
61+ private final boolean hasDiscoveredClusterManager ;
6262 private final int activeShards ;
6363 private final int relocatingShards ;
6464 private final int activePrimaryShards ;
@@ -86,7 +86,7 @@ public ClusterStateHealth(final ClusterState clusterState) {
8686 public ClusterStateHealth (final ClusterState clusterState , final String [] concreteIndices ) {
8787 numberOfNodes = clusterState .nodes ().getSize ();
8888 numberOfDataNodes = clusterState .nodes ().getDataNodes ().size ();
89- hasDiscoveredMaster = clusterState .nodes ().getMasterNodeId () != null ;
89+ hasDiscoveredClusterManager = clusterState .nodes ().getMasterNodeId () != null ;
9090 indices = new HashMap <>();
9191 for (String index : concreteIndices ) {
9292 IndexRoutingTable indexRoutingTable = clusterState .routingTable ().index (index );
@@ -155,9 +155,9 @@ public ClusterStateHealth(final StreamInput in) throws IOException {
155155 numberOfNodes = in .readVInt ();
156156 numberOfDataNodes = in .readVInt ();
157157 if (in .getVersion ().onOrAfter (Version .V_1_0_0 )) {
158- hasDiscoveredMaster = in .readBoolean ();
158+ hasDiscoveredClusterManager = in .readBoolean ();
159159 } else {
160- hasDiscoveredMaster = true ;
160+ hasDiscoveredClusterManager = true ;
161161 }
162162 status = ClusterHealthStatus .fromValue (in .readByte ());
163163 int size = in .readVInt ();
@@ -180,7 +180,7 @@ public ClusterStateHealth(
180180 int unassignedShards ,
181181 int numberOfNodes ,
182182 int numberOfDataNodes ,
183- boolean hasDiscoveredMaster ,
183+ boolean hasDiscoveredClusterManager ,
184184 double activeShardsPercent ,
185185 ClusterHealthStatus status ,
186186 Map <String , ClusterIndexHealth > indices
@@ -192,7 +192,7 @@ public ClusterStateHealth(
192192 this .unassignedShards = unassignedShards ;
193193 this .numberOfNodes = numberOfNodes ;
194194 this .numberOfDataNodes = numberOfDataNodes ;
195- this .hasDiscoveredMaster = hasDiscoveredMaster ;
195+ this .hasDiscoveredClusterManager = hasDiscoveredClusterManager ;
196196 this .activeShardsPercent = activeShardsPercent ;
197197 this .status = status ;
198198 this .indices = indices ;
@@ -239,7 +239,7 @@ public double getActiveShardsPercent() {
239239 }
240240
241241 public boolean hasDiscoveredMaster () {
242- return hasDiscoveredMaster ;
242+ return hasDiscoveredClusterManager ;
243243 }
244244
245245 @ Override
@@ -257,7 +257,7 @@ public void writeTo(final StreamOutput out) throws IOException {
257257 out .writeVInt (numberOfNodes );
258258 out .writeVInt (numberOfDataNodes );
259259 if (out .getVersion ().onOrAfter (Version .V_1_0_0 )) {
260- out .writeBoolean (hasDiscoveredMaster );
260+ out .writeBoolean (hasDiscoveredClusterManager );
261261 }
262262 out .writeByte (status .value ());
263263 out .writeVInt (indices .size ());
@@ -274,8 +274,8 @@ public String toString() {
274274 + numberOfNodes
275275 + ", numberOfDataNodes="
276276 + numberOfDataNodes
277- + ", hasDiscoveredMaster ="
278- + hasDiscoveredMaster
277+ + ", hasDiscoveredClusterManager ="
278+ + hasDiscoveredClusterManager
279279 + ", activeShards="
280280 + activeShards
281281 + ", relocatingShards="
@@ -302,7 +302,7 @@ public boolean equals(Object o) {
302302 ClusterStateHealth that = (ClusterStateHealth ) o ;
303303 return numberOfNodes == that .numberOfNodes
304304 && numberOfDataNodes == that .numberOfDataNodes
305- && hasDiscoveredMaster == that .hasDiscoveredMaster
305+ && hasDiscoveredClusterManager == that .hasDiscoveredClusterManager
306306 && activeShards == that .activeShards
307307 && relocatingShards == that .relocatingShards
308308 && activePrimaryShards == that .activePrimaryShards
@@ -318,7 +318,7 @@ public int hashCode() {
318318 return Objects .hash (
319319 numberOfNodes ,
320320 numberOfDataNodes ,
321- hasDiscoveredMaster ,
321+ hasDiscoveredClusterManager ,
322322 activeShards ,
323323 relocatingShards ,
324324 activePrimaryShards ,
0 commit comments