Package com.hazelcast.cp
Class RaftLogFileExporter
java.lang.Object
com.hazelcast.cp.RaftLogFileExporter
A command-line utility to export and convert Raft log files from one Hazelcast
cluster version format to another.
This tool is essential for backward compatibility, allowing for smooth data
migration between versions. It operates by creating a clean copy of CP member
directories and then populating them with converted Raft state files.
-
Constructor Summary
ConstructorsConstructorDescriptionRaftLogFileExporter
(com.hazelcast.version.Version sourceClusterVersion, com.hazelcast.version.Version targetClusterVersion, int maxUncommittedEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportSingleFile
(Path sourceFile, Path targetLogDir) static void
void
processDirectory
(Path sourceDir, String outputDirName)
-
Constructor Details
-
RaftLogFileExporter
public RaftLogFileExporter(com.hazelcast.version.Version sourceClusterVersion, com.hazelcast.version.Version targetClusterVersion, int maxUncommittedEntries)
-
-
Method Details
-
main
-
processDirectory
- Throws:
IOException
-
exportSingleFile
- Throws:
IOException
-