@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 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(String[] args) |
int |
run(String[] args) |
public int run(String[] args) throws IOException, InterruptedException
IOException
InterruptedException
public static SnapshotInfo.SnapshotStats getSnapshotStats(Configuration conf, HBaseProtos.SnapshotDescription snapshot) throws IOException
conf
- the Configuration
to usesnapshot
- HBaseProtos.SnapshotDescription
to get stats fromIOException
public static List<HBaseProtos.SnapshotDescription> getSnapshotList(Configuration conf) throws IOException
conf
- the Configuration
to useIOException