Package io.deephaven.util.grpc
Class ManagedChannelFactory
java.lang.Object
io.deephaven.util.grpc.ManagedChannelFactory
Creates a
ManagedChannel
for Deephaven gRPC services.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkCertificateExpiry
(com.fishlib.io.logger.Logger log, int thresholdDays, KeyStore keyStore, String label, Consumer<String> expirationWarningConsumer) static io.deephaven.shadow.core.io.grpc.ManagedChannel
Build a managed channel for the auth server.static io.deephaven.shadow.core.io.grpc.ManagedChannel
forClient
(com.fishlib.io.logger.Logger log, String serviceName, InetAddress addr, int port) Build a managed channel for the specified service.static io.deephaven.shadow.core.io.netty.handler.ssl.SslContext
getServerSslContext
(com.fishlib.io.logger.Logger log, Consumer<String> expirationWarningConsumer)
-
Field Details
-
OVERRIDE_AUTHORITY_PROP
- See Also:
-
-
Constructor Details
-
ManagedChannelFactory
public ManagedChannelFactory()
-
-
Method Details
-
forClient
@NotNull public static io.deephaven.shadow.core.io.grpc.ManagedChannel forClient(com.fishlib.io.logger.Logger log, @NotNull String serviceName, InetAddress addr, int port) Build a managed channel for the specified service.- Parameters:
addr
- server addressport
- port- Returns:
- a new ManagedChannel
-
forClient
@NotNull public static io.deephaven.shadow.core.io.grpc.ManagedChannel forClient(@NotNull com.fishlib.io.logger.Logger log, @NotNull String serviceName, int port, String... hosts) Build a managed channel for the auth server.- Parameters:
hosts
- server hostsport
- port- Returns:
- a new
ManagedChannel
-
getServerSslContext
-
checkCertificateExpiry
-