Class GRPCServer
java.lang.Object
org.apache.skywalking.oap.server.library.server.grpc.GRPCServer
- All Implemented Interfaces:
Server
-
Constructor Summary
ConstructorsConstructorDescriptionGRPCServer(String host, int port) GRPCServer(String host, int port, String certChainFile, String privateKeyFile, String trustedCAsFile) Require for `server.crt` and `server.pem` for open ssl at server side. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(io.grpc.BindableService handler) voidaddHandler(io.grpc.ServerInterceptor serverInterceptor) voidaddHandler(io.grpc.ServerServiceDefinition definition) voidvoidsetMaxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection) voidsetMaxMessageSize(int maxMessageSize) voidsetThreadPoolQueueSize(int threadPoolQueueSize) voidsetThreadPoolSize(int threadPoolSize) voidstart()
-
Constructor Details
-
Method Details
-
setMaxConcurrentCallsPerConnection
public void setMaxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection) -
setMaxMessageSize
public void setMaxMessageSize(int maxMessageSize) -
setThreadPoolSize
public void setThreadPoolSize(int threadPoolSize) -
setThreadPoolQueueSize
public void setThreadPoolQueueSize(int threadPoolQueueSize) -
initialize
public void initialize()- Specified by:
initializein interfaceServer
-
start
- Specified by:
startin interfaceServer- Throws:
ServerException
-
addHandler
public void addHandler(io.grpc.BindableService handler) -
addHandler
public void addHandler(io.grpc.ServerServiceDefinition definition) -
addHandler
public void addHandler(io.grpc.ServerInterceptor serverInterceptor)
-