org.apache.hadoop.hbase.snapshot
Class SnapshotInfo.SnapshotStats

java.lang.Object
  extended by org.apache.hadoop.hbase.snapshot.SnapshotInfo.SnapshotStats
Enclosing class:
SnapshotInfo

public static class SnapshotInfo.SnapshotStats
extends Object

Statistics about the snapshot

  1. How many store files and logs are in the archive
  2. How many store files and logs are shared with the table
  3. Total store files and logs size and shared amount


Method Summary
 int getArchivedStoreFilesCount()
           
 long getArchivedStoreFileSize()
           
 int getCorruptedStoreFilesCount()
           
 int getLogsCount()
           
 long getLogsSize()
           
 int getMissingLogsCount()
           
 int getMissingStoreFilesCount()
           
 float getSharedStoreFilePercentage()
           
 long getSharedStoreFilesSize()
           
 HBaseProtos.SnapshotDescription getSnapshotDescription()
           
 int getStoreFilesCount()
           
 long getStoreFilesSize()
           
 boolean isSnapshotCorrupted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSnapshotDescription

public HBaseProtos.SnapshotDescription getSnapshotDescription()
Returns:
the snapshot descriptor

isSnapshotCorrupted

public boolean isSnapshotCorrupted()
Returns:
true if the snapshot is corrupted

getStoreFilesCount

public int getStoreFilesCount()
Returns:
the number of available store files

getArchivedStoreFilesCount

public int getArchivedStoreFilesCount()
Returns:
the number of available store files in the archive

getLogsCount

public int getLogsCount()
Returns:
the number of available log files

getMissingStoreFilesCount

public int getMissingStoreFilesCount()
Returns:
the number of missing store files

getCorruptedStoreFilesCount

public int getCorruptedStoreFilesCount()
Returns:
the number of corrupted store files

getMissingLogsCount

public int getMissingLogsCount()
Returns:
the number of missing log files

getStoreFilesSize

public long getStoreFilesSize()
Returns:
the total size of the store files referenced by the snapshot

getSharedStoreFilesSize

public long getSharedStoreFilesSize()
Returns:
the total size of the store files shared

getArchivedStoreFileSize

public long getArchivedStoreFileSize()
Returns:
the total size of the store files in the archive

getSharedStoreFilePercentage

public float getSharedStoreFilePercentage()
Returns:
the percentage of the shared store files

getLogsSize

public long getLogsSize()
Returns:
the total log size


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.