public class RaftStorageImpl extends Object implements RaftStorage
RaftServer.| 限定符和类型 | 类和说明 |
|---|---|
static class |
RaftStorageImpl.StartupOption |
LOG| 构造器和说明 |
|---|
RaftStorageImpl(File dir,
RaftServerConfigKeys.Log.CorruptionPolicy logCorruptionPolicy) |
public RaftStorageImpl(File dir, RaftServerConfigKeys.Log.CorruptionPolicy logCorruptionPolicy) throws IOException
IOExceptionpublic RaftServerConfigKeys.Log.CorruptionPolicy getLogCorruptionPolicy()
getLogCorruptionPolicy 在接口中 RaftStoragepublic org.apache.ratis.server.storage.RaftStorageDirectoryImpl getStorageDir()
getStorageDir 在接口中 RaftStoragepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic RaftStorageMetadataFile getMetadataFile()
getMetadataFile 在接口中 RaftStoragepublic void writeRaftConfiguration(org.apache.ratis.proto.RaftProtos.LogEntryProto conf)
public RaftConfiguration readRaftConfiguration()
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.