public final class RaftClientImpl extends Object implements RaftClient
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RaftClientImpl.PendingClientRequest |
RaftClient.BuilderLOG| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ratis.client.impl.AdminImpl |
admin() |
org.apache.ratis.client.impl.AsyncImpl |
async()
Get the
AsyncApi. |
void |
close() |
RaftClientRpc |
getClientRpc() |
DataStreamApi |
getDataStreamApi() |
RaftGroupId |
getGroupId() |
org.apache.ratis.client.impl.GroupManagementImpl |
getGroupManagementApi(RaftPeerId server)
Get the
GroupManagementApi for the given server. |
ClientId |
getId() |
LeaderElectionManagementApi |
getLeaderElectionManagementApi(RaftPeerId server)
Get the
LeaderElectionManagementApi for the given server. |
RaftPeerId |
getLeaderId() |
MessageStreamImpl |
getMessageStreamApi() |
SnapshotManagementApi |
getSnapshotManagementApi()
Get the
SnapshotManagementApi for the given server. |
SnapshotManagementApi |
getSnapshotManagementApi(RaftPeerId server)
Get the
SnapshotManagementApi for the given server. |
org.apache.ratis.client.impl.BlockingImpl |
io() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewBuilderpublic RaftPeerId getLeaderId()
getLeaderId 在接口中 RaftClientpublic RaftGroupId getGroupId()
getGroupId 在接口中 RaftClientpublic ClientId getId()
getId 在接口中 RaftClientpublic org.apache.ratis.client.impl.AdminImpl admin()
admin 在接口中 RaftClientAdminApi.public org.apache.ratis.client.impl.GroupManagementImpl getGroupManagementApi(RaftPeerId server)
RaftClientGroupManagementApi for the given server.getGroupManagementApi 在接口中 RaftClientpublic SnapshotManagementApi getSnapshotManagementApi()
RaftClientSnapshotManagementApi for the given server.getSnapshotManagementApi 在接口中 RaftClientpublic SnapshotManagementApi getSnapshotManagementApi(RaftPeerId server)
RaftClientSnapshotManagementApi for the given server.getSnapshotManagementApi 在接口中 RaftClientpublic LeaderElectionManagementApi getLeaderElectionManagementApi(RaftPeerId server)
RaftClientLeaderElectionManagementApi for the given server.getLeaderElectionManagementApi 在接口中 RaftClientpublic org.apache.ratis.client.impl.BlockingImpl io()
io 在接口中 RaftClientBlockingApi.public org.apache.ratis.client.impl.AsyncImpl async()
RaftClientAsyncApi.async 在接口中 RaftClientpublic MessageStreamImpl getMessageStreamApi()
getMessageStreamApi 在接口中 RaftClientMessageStreamApi.public DataStreamApi getDataStreamApi()
getDataStreamApi 在接口中 RaftClientDataStreamApi.public RaftClientRpc getClientRpc()
getClientRpc 在接口中 RaftClientRaftClientRpc.public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.