public class CommitLogArchiver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.util.concurrent.Future<?>> |
archivePending |
static java.text.SimpleDateFormat |
format |
java.util.concurrent.TimeUnit |
precision |
long |
restorePointInTime |
Constructor and Description |
---|
CommitLogArchiver() |
Modifier and Type | Method and Description |
---|---|
void |
maybeArchive(CommitLogSegment segment) |
void |
maybeArchive(java.lang.String path,
java.lang.String name)
Differs from the above because it can be used on any file, rather than only
managed commit log segments (and thus cannot call waitForFinalSync).
|
void |
maybeRestoreArchive() |
boolean |
maybeWaitForArchiving(java.lang.String name) |
public static final java.text.SimpleDateFormat format
public final java.util.Map<java.lang.String,java.util.concurrent.Future<?>> archivePending
public long restorePointInTime
public final java.util.concurrent.TimeUnit precision
public void maybeArchive(CommitLogSegment segment)
public void maybeArchive(java.lang.String path, java.lang.String name)
public boolean maybeWaitForArchiving(java.lang.String name)
public void maybeRestoreArchive()
Copyright © 2016 The Apache Software Foundation