Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
appConf |
protected static long |
interval |
protected static long |
maxage |
static String |
ZK_CLEANUP_INTERVAL |
static String |
ZK_CLEANUP_MAX_AGE |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
boolean |
checkAndDelete(String node,
org.apache.curator.framework.CuratorFramework zk)
Check to see if a job is more than maxage old, and delete it if so.
|
void |
exit() |
List<String> |
getChildList(org.apache.curator.framework.CuratorFramework zk)
Get the list of jobs from JobState
|
static ZooKeeperCleanup |
getInstance(org.apache.hadoop.conf.Configuration appConf) |
void |
run()
Run the cleanup loop.
|
static void |
startInstance(org.apache.hadoop.conf.Configuration appConf) |
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
protected org.apache.hadoop.conf.Configuration appConf
public static final String ZK_CLEANUP_INTERVAL
public static final String ZK_CLEANUP_MAX_AGE
protected static long interval
protected static long maxage
public static ZooKeeperCleanup getInstance(org.apache.hadoop.conf.Configuration appConf)
public static void startInstance(org.apache.hadoop.conf.Configuration appConf) throws IOException
IOException
public void run()
public List<String> getChildList(org.apache.curator.framework.CuratorFramework zk)
public boolean checkAndDelete(String node, org.apache.curator.framework.CuratorFramework zk)
public void exit()
Copyright © 2021 The Apache Software Foundation. All rights reserved.