Class ExternalArchiver
- java.lang.Object
-
- org.apache.cassandra.utils.binlog.ExternalArchiver
-
- All Implemented Interfaces:
net.openhft.chronicle.queue.impl.StoreFileListener,BinLogArchiver
public class ExternalArchiver extends java.lang.Object implements BinLogArchiver
Archives binary log files immediately when they are rolled using a configure archive command. The archive command should be "/path/to/script.sh %path" where %path will be replaced with the file to be archived
-
-
Constructor Summary
Constructors Constructor Description ExternalArchiver(java.lang.String archiveCommand, java.nio.file.Path path, int maxArchiveRetries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonReleased(int cycle, java.io.File file)voidstop()Stops the archiver thread and tries to archive all existing files this handles the case where a user explicitly disables full/audit log and would expect all log files to be archived rolled or not
-
-
-
Method Detail
-
onReleased
public void onReleased(int cycle, java.io.File file)- Specified by:
onReleasedin interfaceBinLogArchiver- Specified by:
onReleasedin interfacenet.openhft.chronicle.queue.impl.StoreFileListener
-
stop
public void stop()
Stops the archiver thread and tries to archive all existing files this handles the case where a user explicitly disables full/audit log and would expect all log files to be archived rolled or not- Specified by:
stopin interfaceBinLogArchiver
-
-