public class RaftStorageImpl extends Object implements RaftStorage
RaftServer.RaftStorage.Builder, RaftStorage.StartupOptionLOGclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewBuilderpublic void initialize()
throws IOException
initialize 在接口中 RaftStorageIOExceptionpublic 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–2025 The Apache Software Foundation. All rights reserved.