org.apache.hadoop.hbase.master
Class AssignmentManager.TimeoutMonitor
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.Chore
org.apache.hadoop.hbase.master.AssignmentManager.TimeoutMonitor
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- AssignmentManager
public class AssignmentManager.TimeoutMonitor
- extends Chore
Monitor to check for time outs on region transition operations
Fields inherited from class org.apache.hadoop.hbase.Chore |
stopper |
Method Summary |
boolean |
bulkAssign(boolean bulkAssign)
|
protected void |
chore()
Look for chores. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
AssignmentManager.TimeoutMonitor
public AssignmentManager.TimeoutMonitor(int period,
Stoppable stopper,
int timeout)
- Creates a periodic monitor to check for time outs on region transition
operations. This will deal with retries if for some reason something
doesn't happen within the specified timeout.
- Parameters:
period
- stopper
- When Stoppable.isStopped()
is true, this thread will
cleanup and exit cleanly.timeout
-
bulkAssign
public boolean bulkAssign(boolean bulkAssign)
- Parameters:
bulkAssign
- If true, we'll suspend checking regions in transition
up in zookeeper. If false, will reenable check.
- Returns:
- Old setting for bulkAssign.
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
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.