org.apache.hadoop.hbase.snapshot
Class ReferenceServerWALsTask
java.lang.Object
org.apache.hadoop.hbase.snapshot.SnapshotTask
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
Method Summary |
Void |
call()
Create reference files (empty files with the same path and file name as original). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 runfailureListener
- listener to check for errors while running the operation and to
propagate errors found while running the tasklogDir
- log directory for the server. Name of the directory is taken as the name of the
serverconf
- Configuration
to extract filesystem informationfs
- filesystem where the log files are stored and should be referenced
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 © 2013 The Apache Software Foundation. All Rights Reserved.