public class GrpcChannelBuilder extends Object
GrpcServer
at the target during channel
building.Modifier | Constructor and Description |
---|---|
protected |
GrpcChannelBuilder(GrpcServerAddress address,
AlluxioConfiguration conf,
AuthType authType,
boolean alwaysEnableTLS) |
Modifier and Type | Method and Description |
---|---|
GrpcChannel |
build()
Creates an authenticated channel of type
GrpcChannel . |
GrpcChannelBuilder |
disableAuthentication()
Disables authentication with the server.
|
protected GrpcServerAddress |
getAddress() |
protected boolean |
getAlwaysEnableTLS() |
protected AuthType |
getAuthType() |
protected AlluxioConfiguration |
getConfiguration() |
protected GrpcNetworkGroup |
getNetworkGroup() |
protected Subject |
getParentSubject() |
static GrpcChannelBuilder |
newBuilder(GrpcServerAddress address,
AlluxioConfiguration conf)
Create a channel builder for given address using the given configuration.
|
static GrpcChannelBuilder |
newBuilder(GrpcServerAddress address,
AlluxioConfiguration conf,
AuthType authType,
boolean alwaysEnableTLS)
Create a channel builder for given address using the given configuration.
|
static GrpcChannelBuilder |
newBuilder(GrpcServerAddress address,
AlluxioConfiguration conf,
boolean alwaysEnableTLS)
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. |
protected GrpcChannelBuilder(GrpcServerAddress address, AlluxioConfiguration conf, AuthType authType, boolean alwaysEnableTLS)
public static GrpcChannelBuilder newBuilder(GrpcServerAddress address, AlluxioConfiguration conf)
address
- the host addressconf
- Alluxio configurationGrpcChannelBuilder
public static GrpcChannelBuilder newBuilder(GrpcServerAddress address, AlluxioConfiguration conf, boolean alwaysEnableTLS)
address
- the host addressconf
- Alluxio configurationalwaysEnableTLS
- whether to always enable TLSGrpcChannelBuilder
public static GrpcChannelBuilder newBuilder(GrpcServerAddress address, AlluxioConfiguration conf, AuthType authType, boolean alwaysEnableTLS)
address
- the host addressconf
- Alluxio configurationauthType
- the auth typealwaysEnableTLS
- whether to always enable the TLSGrpcChannelBuilder
public GrpcChannelBuilder setSubject(Subject subject)
Subject
for authentication.subject
- the subjectGrpcChannelBuilder
instancepublic GrpcChannelBuilder disableAuthentication()
GrpcChannelBuilder
instancepublic GrpcChannelBuilder setNetworkGroup(GrpcNetworkGroup group)
group
- the networking groupGrpcChannelBuilder
protected GrpcServerAddress getAddress()
protected GrpcNetworkGroup getNetworkGroup()
protected AlluxioConfiguration getConfiguration()
protected boolean getAlwaysEnableTLS()
protected AuthType getAuthType()
protected Subject getParentSubject()
public GrpcChannel build() throws AlluxioStatusException
GrpcChannel
.GrpcChannel
AlluxioStatusException
Copyright © 2023. All Rights Reserved.