public static class SnapshotInfo.SnapshotStats extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SnapshotInfo.SnapshotStats.FileInfo
Information about the file referenced by the snapshot
|
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hadoop.fs.FileSystem |
fs |
private AtomicInteger |
hfileArchiveCount |
private AtomicLong |
hfileArchiveSize |
private AtomicInteger |
hfilesCorrupted |
private AtomicInteger |
hfilesCount |
private AtomicLong |
hfileSize |
private AtomicInteger |
hfilesMissing |
private AtomicInteger |
logsCount |
private AtomicLong |
logSize |
private AtomicInteger |
logsMissing |
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription |
snapshot |
private TableName |
snapshotTable |
Constructor and Description |
---|
SnapshotInfo.SnapshotStats(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot) |
Modifier and Type | Method and Description |
---|---|
(package private) SnapshotInfo.SnapshotStats.FileInfo |
addLogFile(String server,
String logfile)
Add the specified log file to the stats
|
(package private) SnapshotInfo.SnapshotStats.FileInfo |
addStoreFile(HRegionInfo region,
String family,
org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile storeFile)
Add the specified store file to the stats
|
int |
getArchivedStoreFilesCount() |
long |
getArchivedStoreFileSize() |
int |
getCorruptedStoreFilesCount() |
int |
getLogsCount() |
long |
getLogsSize() |
int |
getMissingLogsCount() |
int |
getMissingStoreFilesCount() |
float |
getSharedStoreFilePercentage() |
long |
getSharedStoreFilesSize() |
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription |
getSnapshotDescription() |
int |
getStoreFilesCount() |
long |
getStoreFilesSize() |
boolean |
isSnapshotCorrupted() |
private AtomicInteger hfileArchiveCount
private AtomicInteger hfilesCorrupted
private AtomicInteger hfilesMissing
private AtomicInteger hfilesCount
private AtomicInteger logsMissing
private AtomicInteger logsCount
private AtomicLong hfileArchiveSize
private AtomicLong hfileSize
private AtomicLong logSize
private final org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot
private final TableName snapshotTable
private final org.apache.hadoop.conf.Configuration conf
private final org.apache.hadoop.fs.FileSystem fs
SnapshotInfo.SnapshotStats(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot)
public org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription getSnapshotDescription()
public boolean isSnapshotCorrupted()
public int getStoreFilesCount()
public int getArchivedStoreFilesCount()
public int getLogsCount()
public int getMissingStoreFilesCount()
public int getCorruptedStoreFilesCount()
public int getMissingLogsCount()
public long getStoreFilesSize()
public long getSharedStoreFilesSize()
public long getArchivedStoreFileSize()
public float getSharedStoreFilePercentage()
public long getLogsSize()
SnapshotInfo.SnapshotStats.FileInfo addStoreFile(HRegionInfo region, String family, org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos.SnapshotRegionManifest.StoreFile storeFile) throws IOException
region
- region encoded Namefamily
- family namestoreFile
- store file nameIOException
SnapshotInfo.SnapshotStats.FileInfo addLogFile(String server, String logfile) throws IOException
server
- server namelogfile
- log file nameIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.