|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.backup.example.HFileArchiveTableMonitor
public class HFileArchiveTableMonitor
Monitor the actual tables for which HFiles are archived for long-term retention (always kept unless ZK state changes).
It is internally synchronized to ensure consistent view of the table state.
Constructor Summary | |
---|---|
HFileArchiveTableMonitor()
|
Method Summary | |
---|---|
void |
addTable(String table)
Add the named table to be those being archived. |
void |
clearArchive()
|
void |
removeTable(String table)
|
void |
setArchiveTables(List<String> tables)
Set the tables to be archived. |
boolean |
shouldArchiveTable(String tableName)
Determine if the given table should or should not allow its hfiles to be deleted in the archive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HFileArchiveTableMonitor()
Method Detail |
---|
public void setArchiveTables(List<String> tables)
Note: All previous tables will be removed in favor of these tables.
tables
- add each of the tables to be archived.public void addTable(String table)
table
- name of the table to be registeredpublic void removeTable(String table)
public void clearArchive()
public boolean shouldArchiveTable(String tableName)
tableName
- name of the table to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |