public class ReferenceRegionHFilesTask extends SnapshotTask
Doesn't take into acccount if the hfiles are valid or not, just keeps track of what's in the region's directory.
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
errorMonitor, snapshot| Constructor and Description |
|---|
ReferenceRegionHFilesTask(HBaseProtos.SnapshotDescription snapshot,
ForeignExceptionDispatcher monitor,
org.apache.hadoop.fs.Path regionDir,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionSnapshotDir)
Reference all the files in the given region directory
|
| Modifier and Type | Method and Description |
|---|---|
Void |
call() |
getException, hasException, rethrowException, snapshotFailurepublic ReferenceRegionHFilesTask(HBaseProtos.SnapshotDescription snapshot, ForeignExceptionDispatcher monitor, org.apache.hadoop.fs.Path regionDir, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionSnapshotDir)
snapshot - snapshot for which to add referencesmonitor - to check/send errorregionDir - region directory to look for errorsfs - FileSystem where the snapshot/region liveregionSnapshotDir - directory in the snapshot to store region filespublic Void call() throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All Rights Reserved.