public class BaseServer
extends java.lang.Object
Constructor and Description |
---|
BaseServer(com.google.inject.Injector injector,
ServerConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
addShutdownHook() |
void |
blockUntilShutdown()
Await termination on the main thread since the grpc library uses daemon threads.
|
void |
start(java.lang.Class<? extends io.grpc.BindableService> clazz)
A server for users.
|
void |
startAdmin(java.lang.Class<? extends io.grpc.BindableService> clazz)
A admin server for admins.
|
void |
startPrivileged(java.lang.Class<? extends io.grpc.BindableService> clazz)
A privileged server for privileged users.
|
public BaseServer(com.google.inject.Injector injector, ServerConfig config)
public void start(java.lang.Class<? extends io.grpc.BindableService> clazz) throws java.io.IOException
java.io.IOException
public void startPrivileged(java.lang.Class<? extends io.grpc.BindableService> clazz) throws java.io.IOException
java.io.IOException
public void startAdmin(java.lang.Class<? extends io.grpc.BindableService> clazz) throws java.io.IOException
java.io.IOException
public void addShutdownHook()
public void blockUntilShutdown() throws java.lang.InterruptedException
java.lang.InterruptedException