org.apache.hadoop.hbase.master
Class AssignmentManager.TimeoutMonitor

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.hadoop.hbase.Chore
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.Chore
stopper
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AssignmentManager.TimeoutMonitor(int period, Stoppable stopper, int timeout)
          Creates a periodic monitor to check for time outs on region transition operations.
 
Method Summary
 boolean bulkAssign(boolean bulkAssign)
           
protected  void chore()
          Look for chores.
 
Methods inherited from class org.apache.hadoop.hbase.Chore
initialChore, run, sleep, triggerNow
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.