public final class GrpcChannelBuilder extends Object
GrpcServer
at the target during channel
building.Modifier and Type | Method and Description |
---|---|
GrpcChannel |
build()
Creates an authenticated channel of type
GrpcChannel . |
GrpcChannelBuilder |
disableAuthentication()
Disables authentication with the server.
|
static GrpcChannelBuilder |
newBuilder(GrpcServerAddress address,
AlluxioConfiguration conf)
Create a channel builder for given address using the given configuration.
|
GrpcChannelBuilder |
setNetworkGroup(GrpcNetworkGroup group)
Sets the pooling strategy.
|
GrpcChannelBuilder |
setSubject(Subject subject)
Sets
Subject for authentication. |
public static GrpcChannelBuilder newBuilder(GrpcServerAddress address, AlluxioConfiguration conf)
address
- the host addressconf
- Alluxio configurationGrpcChannelBuilder
public GrpcChannelBuilder setSubject(Subject subject)
Subject
for authentication.subject
- the subjectGrpcChannelBuilder
instancepublic GrpcChannelBuilder disableAuthentication()
GrpcChannelBuilder
instancepublic GrpcChannelBuilder setNetworkGroup(GrpcNetworkGroup group)
group
- the networking groupGrpcChannelBuilder
public GrpcChannel build() throws AlluxioStatusException
GrpcChannel
.GrpcChannel
AlluxioStatusException
Copyright © 2023. All Rights Reserved.