Class GRpcServerUtils

java.lang.Object
com.netflix.genie.web.agent.apis.rpc.servers.GRpcServerUtils

public class GRpcServerUtils extends Object
Utilities for working with a gRPC Server instance.
Since:
4.0.0
  • Method Details

    • startServer

      public static int startServer(io.grpc.Server server) throws IllegalStateException
      Attempt to start a gRpc server on this node.
      Parameters:
      server - The server to start
      Returns:
      The port the server is running on.
      Throws:
      IllegalStateException - If we're unable to start the server