@@ -49,6 +49,10 @@ public String getMonitoringCluster() {
49
49
return _monitoringCluster ;
50
50
}
51
51
52
+ public String getMonitoringService () {
53
+ return _monitoringService ;
54
+ }
55
+
52
56
public int getHttpPort () {
53
57
return _httpPort ;
54
58
}
@@ -130,6 +134,7 @@ public String toString() {
130
134
return MoreObjects .toStringHelper (this )
131
135
.add ("id" , Integer .toHexString (System .identityHashCode (this )))
132
136
.add ("MonitoringCluster" , _monitoringCluster )
137
+ .add ("MonitoringService" , _monitoringService )
133
138
.add ("HttpHost" , _httpHost )
134
139
.add ("HttpPort" , _httpPort )
135
140
.add ("HttpHealthCheckPath" , _httpHealthCheckPath )
@@ -153,6 +158,7 @@ public String toString() {
153
158
154
159
private ClusterAggregatorConfiguration (final Builder builder ) {
155
160
_monitoringCluster = builder ._monitoringCluster ;
161
+ _monitoringService = builder ._monitoringService ;
156
162
_httpHost = builder ._httpHost ;
157
163
_httpPort = builder ._httpPort ;
158
164
_httpHealthCheckPath = builder ._httpHealthCheckPath ;
@@ -175,6 +181,7 @@ private ClusterAggregatorConfiguration(final Builder builder) {
175
181
}
176
182
177
183
private final String _monitoringCluster ;
184
+ private final String _monitoringService ;
178
185
private final File _logDirectory ;
179
186
private final String _httpHost ;
180
187
private final int _httpPort ;
@@ -219,6 +226,18 @@ public Builder setMonitoringCluster(final String value) {
219
226
return this ;
220
227
}
221
228
229
+ /**
230
+ * The monitoring service. Optional. Cannot be null or empty. Default
231
+ * is cluster_aggregator.
232
+ *
233
+ * @param value The monitoring service.
234
+ * @return This instance of <code>Builder</code>.
235
+ */
236
+ public Builder setMonitoringService (final String value ) {
237
+ _monitoringService = value ;
238
+ return this ;
239
+ }
240
+
222
241
/**
223
242
* The http host address to bind to. Cannot be null or empty.
224
243
*
@@ -446,6 +465,9 @@ public Builder setCalculateClusterAggregations(final Boolean value) {
446
465
private String _monitoringCluster ;
447
466
@ NotNull
448
467
@ NotEmpty
468
+ private String _monitoringService = "cluster_aggregator" ;
469
+ @ NotNull
470
+ @ NotEmpty
449
471
private String _httpHost = "0.0.0.0" ;
450
472
@ NotNull
451
473
@ Range (min = 1 , max = 65535 )
0 commit comments