Class GRpcServerUtils
- java.lang.Object
-
- com.netflix.genie.web.agent.apis.rpc.servers.GRpcServerUtils
-
public class GRpcServerUtils extends java.lang.Object
Utilities for working with a gRPCServer
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.
-
-
-
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
-
-