Class GRpcServerUtils
- java.lang.Object
-
- com.netflix.genie.web.agent.apis.rpc.servers.GRpcServerUtils
-
public class GRpcServerUtils extends java.lang.ObjectUtilities for working with a gRPCServerinstance.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intstartServer(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.IllegalStateExceptionAttempt 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
-
-