public class RaftStorageImpl extends Object implements RaftStorage
RaftServer.| Modifier and Type | Class and Description |
|---|---|
static class |
RaftStorageImpl.StartupOption |
LOG| Constructor and Description |
|---|
RaftStorageImpl(File dir,
RaftServerConfigKeys.Log.CorruptionPolicy logCorruptionPolicy,
long storageFeeSpaceMin) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RaftServerConfigKeys.Log.CorruptionPolicy |
getLogCorruptionPolicy() |
RaftStorageMetadataFile |
getMetadataFile() |
org.apache.ratis.server.storage.RaftStorageDirectoryImpl |
getStorageDir() |
RaftConfiguration |
readRaftConfiguration() |
String |
toString() |
void |
writeRaftConfiguration(org.apache.ratis.proto.RaftProtos.LogEntryProto conf) |
public RaftStorageImpl(File dir, RaftServerConfigKeys.Log.CorruptionPolicy logCorruptionPolicy, long storageFeeSpaceMin) throws IOException
IOExceptionpublic 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–2021 The Apache Software Foundation. All rights reserved.