Class GRpcServerUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int startServer​(io.grpc.Server server)
      Attempt to start a gRpc server on this node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • startServer

        public static int startServer​(io.grpc.Server server)
                               throws java.lang.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:
        java.lang.IllegalStateException - If we're unable to start the server