Package org.apache.hadoop.hbase.backup
Class TestBackupRestoreOnEmptyEnvironment
java.lang.Object
org.apache.hadoop.hbase.backup.TestBackupRestoreOnEmptyEnvironment
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.fs.Pathstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.testing.TestingHBaseClusterprivate static final byte[]private static final org.slf4j.Loggerbooleanprivate org.apache.hadoop.hbase.TableNameprivate org.apache.hadoop.hbase.TableName - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate Stringbackup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) static voidprivate voidcreateTable(org.apache.hadoop.hbase.TableName tableName) data()private voidprivate voidvoidprivate voidrestore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) voidsetUp()voidvoidprivate voidvalidateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData)  
- 
Field Details
- 
LOG
 - 
CLASS_RULE
 - 
restoreToOtherTable
 - 
sourceTable
 - 
targetTable
 - 
cluster
 - 
BACKUP_ROOT_DIR
 - 
COLUMN_FAMILY
 
 - 
 - 
Constructor Details
- 
TestBackupRestoreOnEmptyEnvironment
public TestBackupRestoreOnEmptyEnvironment() 
 - 
 - 
Method Details
- 
data
 - 
beforeClass
- Throws:
 Exception
 - 
afterClass
- Throws:
 Exception
 - 
setUp
- Throws:
 Exception
 - 
removeTables
- Throws:
 Exception
 - 
testRestoreToCorrectTable
- Throws:
 Exception
 - 
testRestoreCorrectTableForIncremental
- Throws:
 Exception
 - 
createTable
- Throws:
 IOException
 - 
deleteTables
- Throws:
 IOException
 - 
putLoad
private void putLoad(org.apache.hadoop.hbase.TableName tableName, Instant timestamp, String data) throws IOException - Throws:
 IOException
 - 
backup
private String backup(org.apache.hadoop.hbase.backup.BackupType backupType, List<org.apache.hadoop.hbase.TableName> tables) throws IOException - Throws:
 IOException
 - 
restore
private void restore(String backupId, org.apache.hadoop.hbase.TableName sourceTableName, org.apache.hadoop.hbase.TableName targetTableName) throws IOException - Throws:
 IOException
 - 
validateDataEquals
private void validateDataEquals(org.apache.hadoop.hbase.TableName tableName, String expectedData) throws IOException - Throws:
 IOException
 
 -