@@ -77,6 +77,9 @@ public class DaprContainer extends GenericContainer<DaprContainer> {
77
77
private String appName ;
78
78
private Integer appPort ;
79
79
private String appHealthCheckPath ;
80
+ private Integer appHealthCheckProbeInterval = 5 ; //default from docs
81
+ private Integer appHealthCheckProbeTimeout = 500 ; //default from docs
82
+ private Integer appHealthCheckThreshold = 3 ; //default from docs
80
83
private boolean shouldReusePlacement ;
81
84
private boolean shouldReuseScheduler ;
82
85
@@ -133,6 +136,21 @@ public DaprContainer withAppHealthCheckPath(String appHealthCheckPath) {
133
136
return this ;
134
137
}
135
138
139
+ public DaprContainer withAppHealthCheckProbeInterval (Integer appHealthCheckProbeInterval ) {
140
+ this .appHealthCheckProbeInterval = appHealthCheckProbeInterval ;
141
+ return this ;
142
+ }
143
+
144
+ public DaprContainer withAppHealthCheckProbeTimeout (Integer appHealthCheckProbeTimeout ) {
145
+ this .appHealthCheckProbeTimeout = appHealthCheckProbeTimeout ;
146
+ return this ;
147
+ }
148
+
149
+ public DaprContainer withAppHealthCheckThreshold (Integer appHealthCheckThreshold ) {
150
+ this .appHealthCheckThreshold = appHealthCheckThreshold ;
151
+ return this ;
152
+ }
153
+
136
154
public DaprContainer withConfiguration (Configuration configuration ) {
137
155
this .configuration = configuration ;
138
156
return this ;
@@ -311,6 +329,16 @@ protected void configure() {
311
329
cmds .add ("--enable-app-health-check" );
312
330
cmds .add ("--app-health-check-path" );
313
331
cmds .add (appHealthCheckPath );
332
+
333
+ cmds .add ("--app-health-probe-interval" );
334
+ cmds .add (Integer .toString (appHealthCheckProbeInterval ));
335
+
336
+ cmds .add ("--app-health-probe-timeout" );
337
+ cmds .add (Integer .toString (appHealthCheckProbeTimeout ));
338
+
339
+ cmds .add ("--app-health-threshold" );
340
+ cmds .add (Integer .toString (appHealthCheckThreshold ));
341
+
314
342
}
315
343
316
344
if (configuration != null ) {
@@ -385,6 +413,22 @@ public Integer getAppPort() {
385
413
return appPort ;
386
414
}
387
415
416
+ public String getAppHealthCheckPath () {
417
+ return appHealthCheckPath ;
418
+ }
419
+
420
+ public Integer getAppHealthCheckProbeInterval () {
421
+ return appHealthCheckProbeInterval ;
422
+ }
423
+
424
+ public Integer getAppHealthCheckProbeTimeout () {
425
+ return appHealthCheckProbeTimeout ;
426
+ }
427
+
428
+ public Integer getAppHealthCheckThreshold () {
429
+ return appHealthCheckThreshold ;
430
+ }
431
+
388
432
public String getAppChannelAddress () {
389
433
return appChannelAddress ;
390
434
}
0 commit comments