public static class SnapshotTestingUtils.SnapshotMock.SnapshotBuilder extends 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 IOException
IOExceptionpublic HTableDescriptor getTableDescriptor()
public SnapshotDescription getSnapshotDescription()
public Path getSnapshotsDir()
public Path[] addRegion()
                 throws IOException
IOExceptionpublic Path[] addRegionV1()
                   throws IOException
IOExceptionpublic Path[] addRegionV2()
                   throws IOException
IOExceptionpublic void corruptOneRegionManifest()
                              throws IOException
IOException - on unexecpted error from the FSpublic void corruptDataManifest()
                         throws IOException
IOException - on unexecpted error from the FSpublic Path commit()
            throws IOException
IOExceptionpublic void consolidate()
                 throws IOException
IOException