// Path: grpc-mate-java/helloworld-service/src/main/java/io/datanerd/hello/service/GreeterService.java
// @Singleton
// public class GreeterService extends GreeterGrpc.GreeterImplBase {
// 
//   private static Logger log = LoggerFactory.getLogger(GreeterService.class); //NOPMD
// 
//   @Override
//   public void sayHello(HelloRequest request, StreamObserver<HelloReply> responseObserver) {
//     log.info("get request - {}", request.getName());
//     HelloReply helloReply = HelloReply
//         .newBuilder()
//         .setMessage(String.format("hello %s", request.getName()))
//         .build();
//     log.info("reply with {}", helloReply);
//     responseObserver.onNext(helloReply);
//     responseObserver.onCompleted();
//   }
// }


import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import io.datanerd.hello.service.GreeterService;
import io.grpc.Server;
import io.grpc.netty.NettyServerBuilder;
package io.datanerd.hello.server;






@Singleton
class GrpcServer {

  private static Logger log = LoggerFactory.getLogger(GrpcServer.class); //NOPMD
  @Inject
// Path: grpc-mate-java/helloworld-service/src/main/java/io/datanerd/hello/service/GreeterService.java
// @Singleton
// public class GreeterService extends GreeterGrpc.GreeterImplBase {
// 
//   private static Logger log = LoggerFactory.getLogger(GreeterService.class); //NOPMD
// 
//   @Override
//   public void sayHello(HelloRequest request, StreamObserver<HelloReply> responseObserver) {
//     log.info("get request - {}", request.getName());
//     HelloReply helloReply = HelloReply
//         .newBuilder()
//         .setMessage(String.format("hello %s", request.getName()))
//         .build();
//     log.info("reply with {}", helloReply);
//     responseObserver.onNext(helloReply);
//     responseObserver.onCompleted();
//   }
// }


// Path: grpc-mate-java/helloworld-service/src/main/java/io/datanerd/hello/server/GrpcServer.java
import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import io.datanerd.hello.service.GreeterService;
import io.grpc.Server;
import io.grpc.netty.NettyServerBuilder;

package io.datanerd.hello.server;






@Singleton
class GrpcServer {

  private static Logger log = LoggerFactory.getLogger(GrpcServer.class); //NOPMD
  @Inject
  private GreeterService greeterService;