@InterfaceAudience.Private public class HFileArchiveTableMonitor extends Object
It is internally synchronized to ensure consistent view of the table state.
| Modifier and Type | Field and Description | 
|---|---|
| private Set<String> | archivedTables | 
| private static org.slf4j.Logger | LOG | 
| Constructor and Description | 
|---|
| HFileArchiveTableMonitor() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
private static final org.slf4j.Logger LOG
private final Set<String> archivedTables
public HFileArchiveTableMonitor()
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 checkCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.