org.apache.hadoop.hbase.snapshot
Class ReferenceServerWALsTask

java.lang.Object
  extended by org.apache.hadoop.hbase.snapshot.SnapshotTask
      extended by org.apache.hadoop.hbase.snapshot.ReferenceServerWALsTask
All Implemented Interfaces:
Callable<Void>, ForeignExceptionSnare

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class ReferenceServerWALsTask
extends SnapshotTask

Reference all the WAL files under a server's WAL directory


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.snapshot.SnapshotTask
errorMonitor, snapshot
 
Constructor Summary
ReferenceServerWALsTask(HBaseProtos.SnapshotDescription snapshot, ForeignExceptionDispatcher failureListener, org.apache.hadoop.fs.Path logDir, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs)
           
 
Method Summary
 Void call()
          Create reference files (empty files with the same path and file name as original).
 
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
 

Constructor Detail

ReferenceServerWALsTask

public ReferenceServerWALsTask(HBaseProtos.SnapshotDescription snapshot,
                               ForeignExceptionDispatcher failureListener,
                               org.apache.hadoop.fs.Path logDir,
                               org.apache.hadoop.conf.Configuration conf,
                               org.apache.hadoop.fs.FileSystem fs)
Parameters:
snapshot - snapshot being run
failureListener - listener to check for errors while running the operation and to propagate errors found while running the task
logDir - log directory for the server. Name of the directory is taken as the name of the server
conf - Configuration to extract filesystem information
fs - filesystem where the log files are stored and should be referenced
Method Detail

call

public Void call()
          throws IOException,
                 ForeignException
Create reference files (empty files with the same path and file name as original).

Throws:
IOException - exception from hdfs or network problems
ForeignException - exception from an external procedure


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