org.apache.hadoop.hbase.util
Class JVMClusterUtil.MasterThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread
All Implemented Interfaces:
Runnable
Enclosing class:
JVMClusterUtil

public static class JVMClusterUtil.MasterThread
extends Thread

Datastructure to hold Master Thread and Master instance


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JVMClusterUtil.MasterThread(HMaster m, int index)
           
 
Method Summary
 HMaster getMaster()
           
 void waitForServerOnline()
          Block until the master has come online, indicating it is ready to be used.
 
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, run, 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

JVMClusterUtil.MasterThread

public JVMClusterUtil.MasterThread(HMaster m,
                                   int index)
Method Detail

getMaster

public HMaster getMaster()
Returns:
the master

waitForServerOnline

public void waitForServerOnline()
Block until the master has come online, indicating it is ready to be used.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.