public static class SnapshotTestingUtils.SnapshotMock.SnapshotBuilder
extends java.lang.Object
| Constructor and Description |
|---|
SnapshotBuilder(Configuration conf,
FileSystem fs,
Path rootDir,
HTableDescriptor htd,
SnapshotDescription desc,
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions) |
| Modifier and Type | Method and Description |
|---|---|
Path[] |
addRegion() |
Path[] |
addRegionV1() |
Path[] |
addRegionV2() |
Path |
commit() |
void |
consolidate() |
void |
corruptDataManifest()
Corrupt data-manifest file
|
void |
corruptOneRegionManifest()
Corrupt one region-manifest file
|
SnapshotDescription |
getSnapshotDescription() |
Path |
getSnapshotsDir() |
HTableDescriptor |
getTableDescriptor() |
public SnapshotBuilder(Configuration conf,
FileSystem fs,
Path rootDir,
HTableDescriptor htd,
SnapshotDescription desc,
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.SnapshotMock.RegionData[] tableRegions)
throws java.io.IOException
java.io.IOExceptionpublic HTableDescriptor getTableDescriptor()
public SnapshotDescription getSnapshotDescription()
public Path getSnapshotsDir()
public Path[] addRegion()
throws java.io.IOException
java.io.IOExceptionpublic Path[] addRegionV1()
throws java.io.IOException
java.io.IOExceptionpublic Path[] addRegionV2()
throws java.io.IOException
java.io.IOExceptionpublic void corruptOneRegionManifest()
throws java.io.IOException
java.io.IOException - on unexecpted error from the FSpublic void corruptDataManifest()
throws java.io.IOException
java.io.IOException - on unexecpted error from the FSpublic Path commit()
throws java.io.IOException
java.io.IOExceptionpublic void consolidate()
throws java.io.IOException
java.io.IOException