org.apache.hadoop.hbase.snapshot
Class ReferenceRegionHFilesTask
java.lang.Object
org.apache.hadoop.hbase.snapshot.SnapshotTask
org.apache.hadoop.hbase.snapshot.ReferenceRegionHFilesTask
- All Implemented Interfaces:
- Callable<Void>, ForeignExceptionSnare
public class ReferenceRegionHFilesTask
- extends SnapshotTask
Reference all the hfiles in a region for a snapshot.
Doesn't take into acccount if the hfiles are valid or not, just keeps track of what's in the
region's directory.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
ReferenceRegionHFilesTask
public 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
- Parameters:
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 files
call
public Void call()
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.