Package org.apache.hadoop.hbase.mob
Class RSMobFileCleanerChore
java.lang.Object
org.apache.hadoop.hbase.ScheduledChore
org.apache.hadoop.hbase.mob.RSMobFileCleanerChore
- All Implemented Interfaces:
Runnable
The class RSMobFileCleanerChore for running cleaner regularly to remove the obsolete (files which
have no active references to) mob files that were referenced from the current RS.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final HRegionServer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
archiveMobFiles
(org.apache.hadoop.conf.Configuration conf, TableName tableName, byte[] family, List<org.apache.hadoop.fs.Path> storeFiles) Archives the mob files.protected void
chore()
The task to execute on each scheduled execution of the ChoreMethods inherited from class org.apache.hadoop.hbase.ScheduledChore
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, shutdown, shutdown, toString, triggerNow
-
Field Details
-
LOG
-
rs
-
-
Constructor Details
-
RSMobFileCleanerChore
-
RSMobFileCleanerChore
public RSMobFileCleanerChore()
-
-
Method Details
-
chore
Description copied from class:ScheduledChore
The task to execute on each scheduled execution of the Chore- Specified by:
chore
in classScheduledChore
-
archiveMobFiles
public void archiveMobFiles(org.apache.hadoop.conf.Configuration conf, TableName tableName, byte[] family, List<org.apache.hadoop.fs.Path> storeFiles) throws IOException Archives the mob files.- Parameters:
conf
- The current configuration.tableName
- The table name.family
- The name of the column family.storeFiles
- The files to be archived.- Throws:
IOException
- exception
-