|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.snapshot.SnapshotManifest
@InterfaceAudience.Private public class SnapshotManifest
Utility class to help read/write the Snapshot Manifest. The snapshot format is transparent for the users of this class, once the snapshot is written, it will never be modified. On open() the snapshot will be loaded to the current in-memory format.
Method Summary | |
---|---|
void |
addRegion(HRegion region)
Creates a 'manifest' for the specified region, by reading directly from the HRegion object. |
void |
addRegion(org.apache.hadoop.fs.Path tableDir,
HRegionInfo regionInfo)
Creates a 'manifest' for the specified region, by reading directly from the disk. |
void |
addTableDescriptor(HTableDescriptor htd)
Add the table descriptor to the snapshot manifest |
void |
consolidate()
|
static SnapshotManifest |
create(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
HBaseProtos.SnapshotDescription desc,
ForeignExceptionSnare monitor)
Return a SnapshotManifest instance, used for writing a snapshot. |
static ThreadPoolExecutor |
createExecutor(org.apache.hadoop.conf.Configuration conf,
String name)
|
List<SnapshotProtos.SnapshotRegionManifest> |
getRegionManifests()
Get all the Region Manifest from the snapshot |
Map<String,SnapshotProtos.SnapshotRegionManifest> |
getRegionManifestsMap()
Get all the Region Manifest from the snapshot. |
HBaseProtos.SnapshotDescription |
getSnapshotDescription()
Get the SnapshotDescription |
org.apache.hadoop.fs.Path |
getSnapshotDir()
Get the current snapshot working dir |
HTableDescriptor |
getTableDescriptor()
Get the table descriptor from the Snapshot |
static SnapshotManifest |
open(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path workingDir,
HBaseProtos.SnapshotDescription desc)
Return a SnapshotManifest instance with the information already loaded in-memory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SnapshotManifest create(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path workingDir, HBaseProtos.SnapshotDescription desc, ForeignExceptionSnare monitor)
public static SnapshotManifest open(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path workingDir, HBaseProtos.SnapshotDescription desc) throws IOException
IOException
public void addTableDescriptor(HTableDescriptor htd) throws IOException
IOException
public void addRegion(HRegion region) throws IOException
IOException
public void addRegion(org.apache.hadoop.fs.Path tableDir, HRegionInfo regionInfo) throws IOException
IOException
public org.apache.hadoop.fs.Path getSnapshotDir()
public HBaseProtos.SnapshotDescription getSnapshotDescription()
public HTableDescriptor getTableDescriptor()
public List<SnapshotProtos.SnapshotRegionManifest> getRegionManifests()
public Map<String,SnapshotProtos.SnapshotRegionManifest> getRegionManifestsMap()
public void consolidate() throws IOException
IOException
public static ThreadPoolExecutor createExecutor(org.apache.hadoop.conf.Configuration conf, String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |