Modifier and Type | Method and Description |
---|---|
void |
init(AtomicBoolean stop,
AtomicBoolean looped)
Initialize the thread.
|
void |
setHiveConf(HiveConf conf)
Set the Hive configuration for this thread.
|
void |
setThreadId(int threadId)
Set the id for this thread.
|
void |
start()
Run the thread in the background.
|
void setHiveConf(HiveConf conf)
conf
- void setThreadId(int threadId)
threadId
- void init(AtomicBoolean stop, AtomicBoolean looped) throws MetaException
setHiveConf(org.apache.hadoop.hive.conf.HiveConf)
and setThreadId(int)
have been called.stop
- a flag to watch for when to stop. If this value is set to true,
the thread will terminate the next time through its main loop.looped
- a flag that is set to true everytime a thread goes through it's main loop.
This is purely for testing so that tests can assure themselves that the thread
has run through it's loop once. The test can set this value to false. The
thread should then assure that the loop has been gone completely through at
least once.MetaException
void start()
##init(java.util.concurrent.atomic.AtomicBoolean, java.util.concurrent.atomic.AtomicBoolean)
has
been called.Copyright © 2021 The Apache Software Foundation. All rights reserved.