public class CommitLogBackupTask extends AbstractBackup
Task.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JOBNAME |
fs, pathFactory, SNAPSHOT_FOLDER
Constructor and Description |
---|
CommitLogBackupTask(IConfiguration config,
com.google.inject.Provider<AbstractBackupPath> pathFactory,
CommitLogBackup clBackup,
IFileSystemContext backupFileSystemCtx) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
java.lang.String |
getName() |
static TaskTimer |
getTimer(IConfiguration config) |
protected void |
processColumnFamily(java.lang.String keyspace,
java.lang.String columnFamily,
java.io.File backupDir)
Process the columnfamily in a given snapshot/backup directory.
|
getBackupDirectories, getBackupPaths, initiateBackup, isAReadableDirectory, upload
execute, getErrorCount, getExecutionCount, initialize, state
public static final java.lang.String JOBNAME
@Inject public CommitLogBackupTask(IConfiguration config, com.google.inject.Provider<AbstractBackupPath> pathFactory, CommitLogBackup clBackup, IFileSystemContext backupFileSystemCtx)
public void execute() throws java.lang.Exception
public static TaskTimer getTimer(IConfiguration config)
protected void processColumnFamily(java.lang.String keyspace, java.lang.String columnFamily, java.io.File backupDir) throws java.lang.Exception
AbstractBackup
processColumnFamily
in class AbstractBackup
keyspace
- Name of the keyspacecolumnFamily
- Name of the columnfamilybackupDir
- Location of the backup/snapshot directory in that columnfamily.java.lang.Exception
- throws exception if there is any error in process the directory.