org.apache.hadoop.hbase.snapshot
Class ReferenceRegionHFilesTask

java.lang.Object
  extended by org.apache.hadoop.hbase.snapshot.SnapshotTask
      extended by 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
           
 
Fields inherited from class org.apache.hadoop.hbase.snapshot.SnapshotTask
errorMonitor, snapshot
 
Constructor Summary
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
 
Method Summary
 Void call()
           
 
Methods inherited from class org.apache.hadoop.hbase.snapshot.SnapshotTask
getException, hasException, rethrowException, snapshotFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

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 references
monitor - to check/send error
regionDir - region directory to look for errors
fs - FileSystem where the snapshot/region live
regionSnapshotDir - directory in the snapshot to store region files
Method Detail

call

public Void call()
          throws IOException
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.