@InterfaceAudience.Private public class FileArchiverNotifierImpl extends Object implements FileArchiverNotifier
| Modifier and Type | Class and Description |
|---|---|
static class |
FileArchiverNotifierImpl.QuotaSnapshotSizeSerializationException
An Exception thrown when SnapshotSize updates to hbase:quota fail to be written.
|
| Constructor and Description |
|---|
FileArchiverNotifierImpl(Connection conn,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
TableName tn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArchivedFiles(Set<Map.Entry<String,Long>> fileSizes)
Records a file and its size in bytes being moved to the archive directory.
|
long |
computeAndStoreSnapshotSizes(Collection<String> currentSnapshots)
Computes the size of a table and all of its snapshots, recording new "full" sizes for each.
|
String |
toString() |
public FileArchiverNotifierImpl(Connection conn, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, TableName tn)
public void addArchivedFiles(Set<Map.Entry<String,Long>> fileSizes) throws IOException
FileArchiverNotifieraddArchivedFiles in interface FileArchiverNotifierfileSizes - A collection of file name to size in bytesIOException - If there was an IO-related error persisting the file size(s)public long computeAndStoreSnapshotSizes(Collection<String> currentSnapshots) throws IOException
FileArchiverNotifiercomputeAndStoreSnapshotSizes in interface FileArchiverNotifiercurrentSnapshots - the current list of snapshots against this tableIOException - If there was an IO-related error computing or persisting the sizes.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.