@InterfaceAudience.Public @InterfaceStability.Evolving public final class SnapshotInfo extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.util.Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
SnapshotInfo.SnapshotStats
Statistics about the snapshot
How many store files and logs are in the archive
How many store files and logs are shared with the table
Total store files and logs size and shared amount
|
| Constructor and Description |
|---|
SnapshotInfo() |
| Modifier and Type | Method and Description |
|---|---|
static List<HBaseProtos.SnapshotDescription> |
getSnapshotList(org.apache.hadoop.conf.Configuration conf)
Returns the list of available snapshots in the specified location
|
static SnapshotInfo.SnapshotStats |
getSnapshotStats(org.apache.hadoop.conf.Configuration conf,
HBaseProtos.SnapshotDescription snapshot)
Returns the snapshot stats
|
static void |
main(String[] args) |
int |
run(String[] args) |
public int run(String[] args) throws IOException, InterruptedException
run in interface org.apache.hadoop.util.ToolIOExceptionInterruptedExceptionpublic static SnapshotInfo.SnapshotStats getSnapshotStats(org.apache.hadoop.conf.Configuration conf, HBaseProtos.SnapshotDescription snapshot) throws IOException
conf - the Configuration to usesnapshot - HBaseProtos.SnapshotDescription to get stats fromIOExceptionpublic static List<HBaseProtos.SnapshotDescription> getSnapshotList(org.apache.hadoop.conf.Configuration conf) throws IOException
conf - the Configuration to useIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.