.. java:import:: io.grpc Server .. java:import:: io.grpc ServerInterceptors .. java:import:: io.grpc ServerServiceDefinition .. java:import:: io.grpc.netty GrpcSslContexts .. java:import:: io.grpc.netty NettyServerBuilder .. java:import:: io.netty.handler.ssl ApplicationProtocolConfig .. java:import:: io.netty.handler.ssl ApplicationProtocolConfig.Protocol .. java:import:: io.netty.handler.ssl ApplicationProtocolConfig.SelectedListenerFailureBehavior .. java:import:: io.netty.handler.ssl ApplicationProtocolConfig.SelectorFailureBehavior .. java:import:: io.netty.handler.ssl SslContext .. java:import:: io.netty.handler.ssl SslContextBuilder .. java:import:: java.io File .. java:import:: java.io IOException .. java:import:: java.security KeyStore .. java:import:: java.security KeyStoreException .. java:import:: java.security NoSuchAlgorithmException .. java:import:: java.security UnrecoverableKeyException .. java:import:: java.security.cert CertificateException .. java:import:: java.util Arrays .. java:import:: java.util LinkedList .. java:import:: java.util List .. java:import:: java.util.concurrent TimeUnit .. java:import:: javax.net.ssl KeyManagerFactory .. java:import:: org.caosdb.server CaosDBServer .. java:import:: org.caosdb.server ServerProperties .. java:import:: org.slf4j Logger .. java:import:: org.slf4j LoggerFactory GRPCServer ========== .. java:package:: org.caosdb.server.grpc :noindex: .. java:type:: public class GRPCServer This is the main class of the gRPC end-point. Here, the http and https servers are startet. :author: Timm Fitschen Methods ------- startServer ^^^^^^^^^^^ .. java:method:: public static void startServer() throws IOException, InterruptedException, KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException :outertype: GRPCServer Main method of the gRPC end-point which starts the server(s) with HTTP or HTTPS. Whether a server is started or not depends on the server properites \ :java:ref:`ServerProperties.KEY_GRPC_SERVER_PORT_HTTP`\ and \ :java:ref:`ServerProperties.KEY_GRPC_SERVER_PORT_HTTPS`\ . :throws IOException: :throws InterruptedException: :throws KeyStoreException: :throws NoSuchAlgorithmException: :throws CertificateException: :throws UnrecoverableKeyException: