public class StatsUpdaterThread extends Thread implements MetaStoreThread
| Modifier and Type | Class and Description |
|---|---|
class |
StatsUpdaterThread.WorkerRunnable |
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected AtomicBoolean |
looped |
static String |
SKIP_STATS_AUTOUPDATE_PROPERTY |
protected AtomicBoolean |
stop |
protected int |
threadId |
static String |
WORKER_NAME_PREFIX |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
StatsUpdaterThread() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getQueueLength() |
void |
init(AtomicBoolean stop) |
void |
run() |
boolean |
runOneIteration() |
boolean |
runOneWorkerIteration(SessionState ss,
String user,
HiveConf conf,
boolean doWait) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
waitForQueuedCommands() |
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, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitstartpublic static final String SKIP_STATS_AUTOUPDATE_PROPERTY
public static final String WORKER_NAME_PREFIX
protected org.apache.hadoop.conf.Configuration conf
protected int threadId
protected AtomicBoolean stop
protected AtomicBoolean looped
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void init(AtomicBoolean stop) throws org.apache.hadoop.hive.metastore.api.MetaException
init in interface MetaStoreThreadorg.apache.hadoop.hive.metastore.api.MetaExceptionpublic boolean runOneIteration()
public boolean runOneWorkerIteration(SessionState ss, String user, HiveConf conf, boolean doWait) throws InterruptedException
InterruptedExceptionpublic void waitForQueuedCommands()
throws InterruptedException
InterruptedExceptionpublic int getQueueLength()
Copyright © 2024 The Apache Software Foundation. All rights reserved.