public interface GroupManagementApi
| 限定符和类型 | 方法和说明 |
|---|---|
default RaftClientReply |
add(RaftGroup newGroup)
The same as add(newGroup, true).
|
RaftClientReply |
add(RaftGroup newGroup,
boolean format)
Add a new group.
|
GroupInfoReply |
info(RaftGroupId group)
Get the info of the given group.
|
GroupListReply |
list()
List all the groups.
|
RaftClientReply |
remove(RaftGroupId groupId,
boolean deleteDirectory,
boolean renameDirectory)
Remove a group.
|
RaftClientReply add(RaftGroup newGroup, boolean format) throws IOException
format - Should it format the storage?IOExceptiondefault RaftClientReply add(RaftGroup newGroup) throws IOException
IOExceptionRaftClientReply remove(RaftGroupId groupId, boolean deleteDirectory, boolean renameDirectory) throws IOException
IOExceptionGroupListReply list() throws IOException
IOExceptionGroupInfoReply info(RaftGroupId group) throws IOException
IOExceptionCopyright © 2017–2025 The Apache Software Foundation. All rights reserved.