File tree 1 file changed +12
-0
lines changed
src/main/java/io/numaproj/numaflow/mapstreamer
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
package io .numaproj .numaflow .mapstreamer ;
2
2
3
+ import com .google .protobuf .Empty ;
3
4
import io .grpc .Status ;
4
5
import io .grpc .stub .StreamObserver ;
5
6
import io .numaproj .numaflow .map .v1 .MapGrpc ;
@@ -89,6 +90,17 @@ public void onCompleted() {
89
90
};
90
91
}
91
92
93
+ /**
94
+ * IsReady is the heartbeat endpoint for gRPC.
95
+ */
96
+ @ Override
97
+ public void isReady (
98
+ Empty request ,
99
+ StreamObserver <MapOuterClass .ReadyResponse > responseObserver ) {
100
+ responseObserver .onNext (MapOuterClass .ReadyResponse .newBuilder ().setReady (true ).build ());
101
+ responseObserver .onCompleted ();
102
+ }
103
+
92
104
// Construct a HandlerDatum from a MapRequest
93
105
private HandlerDatum constructHandlerDatum (MapOuterClass .MapRequest d ) {
94
106
return new HandlerDatum (
You can’t perform that action at this time.
0 commit comments