Package io.deephaven.client.impl
Class ChannelHelper
java.lang.Object
io.deephaven.client.impl.ChannelHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.grpc.ManagedChannel
channel
(ClientConfig clientConfig) Creates aManagedChannel
according to theclientConfig
.static io.grpc.ManagedChannelBuilder<?>
channelBuilder
(ClientConfig clientConfig) Initializes aManagedChannelBuilder
in the same fashion aschannel(ClientConfig)
, but does notManagedChannelBuilder.build()
it.
-
Field Details
-
DEFAULT_TLS_PORT
public static final int DEFAULT_TLS_PORT- See Also:
-
DEFAULT_PLAINTEXT_PORT
public static final int DEFAULT_PLAINTEXT_PORT- See Also:
-
-
Constructor Details
-
ChannelHelper
public ChannelHelper()
-
-
Method Details
-
channel
Creates aManagedChannel
according to theclientConfig
.If the target is secure, the channel will be configured with SSL. By default, the SSL configuration inherits configuration logic from
TrustJdk
andGrpcSslContexts.configure(SslContextBuilder)
. As mentioned there: "precisely what is set is permitted to change, so if an application requires particular settings it should override the options set".- Parameters:
clientConfig
- the Deephaven client configuration- Returns:
- the channel
-
channelBuilder
Initializes aManagedChannelBuilder
in the same fashion aschannel(ClientConfig)
, but does notManagedChannelBuilder.build()
it.- Parameters:
clientConfig
- the Deephaven client configuration- Returns:
- the channel builder
-