@InterfaceAudience.Private @InterfaceStability.Evolving public class ReferenceServerWALsTask extends SnapshotTask
errorMonitor, snapshot
Constructor and Description |
---|
ReferenceServerWALsTask(HBaseProtos.SnapshotDescription snapshot,
ForeignExceptionDispatcher failureListener,
org.apache.hadoop.fs.Path logDir,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
Void |
call()
Create reference files (empty files with the same path and file name as original).
|
getException, hasException, rethrowException, snapshotFailure
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)
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 referencedpublic Void call() throws IOException, ForeignException
IOException
- exception from hdfs or network problemsForeignException
- exception from an external procedureCopyright © 2013 The Apache Software Foundation. All rights reserved.