public class RaftStorageImpl extends Object implements RaftStorage
RaftServer.RaftStorage.Builder, RaftStorage.StartupOptionLOG| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RaftServerConfigKeys.Log.CorruptionPolicy |
getLogCorruptionPolicy() |
RaftStorageMetadataFile |
getMetadataFile() |
org.apache.ratis.server.storage.RaftStorageDirectoryImpl |
getStorageDir() |
void |
initialize() |
RaftConfiguration |
readRaftConfiguration() |
String |
toString() |
void |
writeRaftConfiguration(org.apache.ratis.proto.RaftProtos.LogEntryProto conf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewBuilderpublic void initialize()
throws IOException
initialize in interface RaftStorageIOExceptionpublic RaftServerConfigKeys.Log.CorruptionPolicy getLogCorruptionPolicy()
getLogCorruptionPolicy in interface RaftStoragepublic org.apache.ratis.server.storage.RaftStorageDirectoryImpl getStorageDir()
getStorageDir in interface RaftStoragepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic RaftStorageMetadataFile getMetadataFile()
getMetadataFile in interface RaftStoragepublic void writeRaftConfiguration(org.apache.ratis.proto.RaftProtos.LogEntryProto conf)
public RaftConfiguration readRaftConfiguration()
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.