public class GrpcFactory extends Object implements ServerFactory, ClientFactory
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
| 构造器和说明 |
|---|
GrpcFactory(GrpcTlsConfig tlsConfig) |
GrpcFactory(Parameters parameters) |
| 限定符和类型 | 方法和说明 |
|---|---|
GrpcTlsConfig |
getAdminTlsConfig() |
GrpcTlsConfig |
getClientTlsConfig() |
SupportedRpcType |
getRpcType() |
GrpcTlsConfig |
getServerTlsConfig() |
GrpcTlsConfig |
getTlsConfig() |
LogAppender |
newLogAppender(RaftServer.Division server,
LeaderState state,
FollowerInfo f) |
GrpcClientRpc |
newRaftClientRpc(ClientId clientId,
RaftProperties properties) |
static Parameters |
newRaftParameters(GrpcTlsConfig conf) |
GrpcService |
newRaftServerRpc(RaftServer server) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcastcastpublic GrpcFactory(Parameters parameters)
public GrpcFactory(GrpcTlsConfig tlsConfig)
public static Parameters newRaftParameters(GrpcTlsConfig conf)
public GrpcTlsConfig getTlsConfig()
public GrpcTlsConfig getAdminTlsConfig()
public GrpcTlsConfig getClientTlsConfig()
public GrpcTlsConfig getServerTlsConfig()
public SupportedRpcType getRpcType()
getRpcType 在接口中 RpcType.Getpublic LogAppender newLogAppender(RaftServer.Division server, LeaderState state, FollowerInfo f)
newLogAppender 在接口中 ServerFactorypublic GrpcService newRaftServerRpc(RaftServer server)
newRaftServerRpc 在接口中 ServerFactorypublic GrpcClientRpc newRaftClientRpc(ClientId clientId, RaftProperties properties)
newRaftClientRpc 在接口中 ClientFactoryCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.