Skip to content

Commit

Permalink
Add messageID to URLItem, fix #53
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Nioche <[email protected]>
  • Loading branch information
jnioche committed May 18, 2022
1 parent fbb21f9 commit 5664535
Show file tree
Hide file tree
Showing 9 changed files with 4,458 additions and 3,910 deletions.
23 changes: 13 additions & 10 deletions API/src/main/java/crawlercommons/urlfrontier/URLFrontierGrpc.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,21 @@ private URLFrontierGrpc() {}

private static volatile io.grpc.MethodDescriptor<
crawlercommons.urlfrontier.Urlfrontier.URLItem,
crawlercommons.urlfrontier.Urlfrontier.String>
crawlercommons.urlfrontier.Urlfrontier.AckMessage>
getPutURLsMethod;

@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PutURLs",
requestType = crawlercommons.urlfrontier.Urlfrontier.URLItem.class,
responseType = crawlercommons.urlfrontier.Urlfrontier.String.class,
responseType = crawlercommons.urlfrontier.Urlfrontier.AckMessage.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor<
crawlercommons.urlfrontier.Urlfrontier.URLItem,
crawlercommons.urlfrontier.Urlfrontier.String>
crawlercommons.urlfrontier.Urlfrontier.AckMessage>
getPutURLsMethod() {
io.grpc.MethodDescriptor<
crawlercommons.urlfrontier.Urlfrontier.URLItem,
crawlercommons.urlfrontier.Urlfrontier.String>
crawlercommons.urlfrontier.Urlfrontier.AckMessage>
getPutURLsMethod;
if ((getPutURLsMethod = URLFrontierGrpc.getPutURLsMethod) == null) {
synchronized (URLFrontierGrpc.class) {
Expand All @@ -299,7 +299,8 @@ private URLFrontierGrpc() {}
getPutURLsMethod =
io.grpc.MethodDescriptor
.<crawlercommons.urlfrontier.Urlfrontier.URLItem,
crawlercommons.urlfrontier.Urlfrontier.String>
crawlercommons.urlfrontier.Urlfrontier
.AckMessage>
newBuilder()
.setType(
io.grpc.MethodDescriptor.MethodType
Expand All @@ -314,7 +315,8 @@ private URLFrontierGrpc() {}
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
crawlercommons.urlfrontier.Urlfrontier
.String.getDefaultInstance()))
.AckMessage
.getDefaultInstance()))
.setSchemaDescriptor(
new URLFrontierMethodDescriptorSupplier(
"PutURLs"))
Expand Down Expand Up @@ -813,7 +815,7 @@ public void getURLs(
* </pre>
*/
public io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.URLItem> putURLs(
io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.String>
io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.AckMessage>
responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
getPutURLsMethod(), responseObserver);
Expand Down Expand Up @@ -973,7 +975,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
crawlercommons.urlfrontier.Urlfrontier.URLItem,
crawlercommons.urlfrontier.Urlfrontier.String>(
crawlercommons.urlfrontier.Urlfrontier.AckMessage>(
this, METHODID_PUT_URLS)))
.addMethod(
getGetStatsMethod(),
Expand Down Expand Up @@ -1136,7 +1138,7 @@ public void getURLs(
* </pre>
*/
public io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.URLItem> putURLs(
io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.String>
io.grpc.stub.StreamObserver<crawlercommons.urlfrontier.Urlfrontier.AckMessage>
responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getPutURLsMethod(), getCallOptions()), responseObserver);
Expand Down Expand Up @@ -1746,7 +1748,8 @@ public io.grpc.stub.StreamObserver<Req> invoke(
return (io.grpc.stub.StreamObserver<Req>)
serviceImpl.putURLs(
(io.grpc.stub.StreamObserver<
crawlercommons.urlfrontier.Urlfrontier.String>)
crawlercommons.urlfrontier.Urlfrontier
.AckMessage>)
responseObserver);
default:
throw new AssertionError();
Expand Down
Loading

0 comments on commit 5664535

Please sign in to comment.