org.apache.hadoop.hbase.master
Class CatalogJanitor
java.lang.Object
org.apache.hadoop.hbase.util.HasThread
org.apache.hadoop.hbase.Chore
org.apache.hadoop.hbase.master.CatalogJanitor
- All Implemented Interfaces:
- Runnable
@InterfaceAudience.Private
public class CatalogJanitor
- extends Chore
A janitor for the catalog tables. Scans the .META.
catalog
table on a period looking for unused regions to garbage collect.
Fields inherited from class org.apache.hadoop.hbase.Chore |
stopper |
Method Summary |
protected void |
chore()
Look for chores. |
boolean |
cleanMergeQualifier(HRegionInfo region)
Checks if the specified region has merge qualifiers, if so, try to clean
them |
protected boolean |
initialChore()
Override to run a task before we start looping. |
boolean |
setEnabled(boolean enabled)
|
Methods inherited from class org.apache.hadoop.hbase.util.HasThread |
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialChore
protected boolean initialChore()
- Description copied from class:
Chore
- Override to run a task before we start looping.
- Overrides:
initialChore
in class Chore
- Returns:
- true if initial chore was successful
setEnabled
public boolean setEnabled(boolean enabled)
- Parameters:
enabled
-
chore
protected void chore()
- Description copied from class:
Chore
- Look for chores. If any found, do them else just return.
- Specified by:
chore
in class Chore
cleanMergeQualifier
public boolean cleanMergeQualifier(HRegionInfo region)
throws IOException
- Checks if the specified region has merge qualifiers, if so, try to clean
them
- Parameters:
region
-
- Returns:
- true if the specified region doesn't have merge qualifier now
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.