@@ -59,128 +59,69 @@ public ClusterHealthResponse(String clusterName, List<String> validationFailures
59
59
this .validationFailures = validationFailures ;
60
60
}
61
61
62
- public String clusterName () {
63
- return clusterName ;
64
- }
65
-
66
62
public String getClusterName () {
67
- return clusterName ();
68
- }
69
-
70
- /**
71
- * The validation failures on the cluster level (without index validation failures).
72
- */
73
- public List <String > validationFailures () {
74
- return this .validationFailures ;
63
+ return clusterName ;
75
64
}
76
65
77
66
/**
78
67
* The validation failures on the cluster level (without index validation failures).
79
68
*/
80
69
public List <String > getValidationFailures () {
81
- return validationFailures () ;
70
+ return this . validationFailures ;
82
71
}
83
72
84
73
/**
85
74
* All the validation failures, including index level validation failures.
86
75
*/
87
- public List <String > allValidationFailures () {
88
- List <String > allFailures = newArrayList (validationFailures ());
76
+ public List <String > getAllValidationFailures () {
77
+ List <String > allFailures = newArrayList (getValidationFailures ());
89
78
for (ClusterIndexHealth indexHealth : indices .values ()) {
90
- allFailures .addAll (indexHealth .validationFailures ());
79
+ allFailures .addAll (indexHealth .getValidationFailures ());
91
80
}
92
81
return allFailures ;
93
82
}
94
83
95
- /**
96
- * All the validation failures, including index level validation failures.
97
- */
98
- public List <String > getAllValidationFailures () {
99
- return allValidationFailures ();
100
- }
101
-
102
-
103
- public int activeShards () {
104
- return activeShards ;
105
- }
106
-
107
84
public int getActiveShards () {
108
- return activeShards ();
109
- }
110
-
111
- public int relocatingShards () {
112
- return relocatingShards ;
85
+ return activeShards ;
113
86
}
114
87
115
88
public int getRelocatingShards () {
116
- return relocatingShards ();
117
- }
118
-
119
- public int activePrimaryShards () {
120
- return activePrimaryShards ;
89
+ return relocatingShards ;
121
90
}
122
91
123
92
public int getActivePrimaryShards () {
124
- return activePrimaryShards ();
125
- }
126
-
127
- public int initializingShards () {
128
- return initializingShards ;
93
+ return activePrimaryShards ;
129
94
}
130
95
131
96
public int getInitializingShards () {
132
- return initializingShards ();
133
- }
134
-
135
- public int unassignedShards () {
136
- return unassignedShards ;
97
+ return initializingShards ;
137
98
}
138
99
139
100
public int getUnassignedShards () {
140
- return unassignedShards ();
141
- }
142
-
143
- public int numberOfNodes () {
144
- return this .numberOfNodes ;
101
+ return unassignedShards ;
145
102
}
146
103
147
104
public int getNumberOfNodes () {
148
- return numberOfNodes ();
149
- }
150
-
151
- public int numberOfDataNodes () {
152
- return this .numberOfDataNodes ;
105
+ return this .numberOfNodes ;
153
106
}
154
107
155
108
public int getNumberOfDataNodes () {
156
- return numberOfDataNodes () ;
109
+ return this . numberOfDataNodes ;
157
110
}
158
111
159
112
/**
160
113
* <tt>true</tt> if the waitForXXX has timeout out and did not match.
161
114
*/
162
- public boolean timedOut () {
163
- return this .timedOut ;
164
- }
165
-
166
115
public boolean isTimedOut () {
167
- return this .timedOut ();
168
- }
169
-
170
- public ClusterHealthStatus status () {
171
- return status ;
116
+ return this .timedOut ;
172
117
}
173
118
174
119
public ClusterHealthStatus getStatus () {
175
- return status ();
176
- }
177
-
178
- public Map <String , ClusterIndexHealth > indices () {
179
- return indices ;
120
+ return status ;
180
121
}
181
122
182
123
public Map <String , ClusterIndexHealth > getIndices () {
183
- return indices () ;
124
+ return indices ;
184
125
}
185
126
186
127
@ Override
@@ -203,7 +144,7 @@ public void readFrom(StreamInput in) throws IOException {
203
144
int size = in .readVInt ();
204
145
for (int i = 0 ; i < size ; i ++) {
205
146
ClusterIndexHealth indexHealth = readClusterIndexHealth (in );
206
- indices .put (indexHealth .index (), indexHealth );
147
+ indices .put (indexHealth .getIndex (), indexHealth );
207
148
}
208
149
timedOut = in .readBoolean ();
209
150
size = in .readVInt ();
0 commit comments