Class ExternalArchiver
java.lang.Object
org.apache.cassandra.utils.binlog.ExternalArchiver
- All Implemented Interfaces:
net.openhft.chronicle.queue.impl.StoreFileListener,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
-
Field Summary
Fields inherited from interface net.openhft.chronicle.queue.impl.StoreFileListener
NO_OP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonReleased(int cycle, 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 notMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.openhft.chronicle.queue.impl.StoreFileListener
isActive, onAcquired
-
Constructor Details
-
ExternalArchiver
-
-
Method Details
-
onReleased
- 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
-