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 |
setClientType(String clientType)
Sets human readable name for the channel's client.
|
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 setClientType(String clientType)
clientType
- client typeGrpcChannelBuilder
instancepublic 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.