@InterfaceAudience.Public @InterfaceStability.Evolving public final class SnapshotInfo extends Configured
| 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 java.util.List<HBaseProtos.SnapshotDescription> |
getSnapshotList(Configuration conf)
Returns the list of available snapshots in the specified location
|
static SnapshotInfo.SnapshotStats |
getSnapshotStats(Configuration conf,
HBaseProtos.SnapshotDescription snapshot)
Returns the snapshot stats
|
static void |
main(java.lang.String[] args) |
int |
run(java.lang.String[] args) |
public int run(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic static SnapshotInfo.SnapshotStats getSnapshotStats(Configuration conf, HBaseProtos.SnapshotDescription snapshot) throws java.io.IOException
conf - the Configuration to usesnapshot - HBaseProtos.SnapshotDescription to get stats fromjava.io.IOExceptionpublic static java.util.List<HBaseProtos.SnapshotDescription> getSnapshotList(Configuration conf) throws java.io.IOException
conf - the Configuration to usejava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception