Constructor and Description |
---|
MetadataCleaner(scala.Enumeration.Value cleanerType,
scala.Function1<Object,scala.runtime.BoxedUnit> cleanupFunc,
SparkConf conf) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
static int |
getDelaySeconds(SparkConf conf) |
static int |
getDelaySeconds(SparkConf conf,
scala.Enumeration.Value cleanerType) |
String |
name() |
static void |
setDelaySeconds(SparkConf conf,
scala.Enumeration.Value cleanerType,
int delay) |
static void |
setDelaySeconds(SparkConf conf,
int delay,
boolean resetAll)
Set the default delay time (in seconds).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public MetadataCleaner(scala.Enumeration.Value cleanerType, scala.Function1<Object,scala.runtime.BoxedUnit> cleanupFunc, SparkConf conf)
public static int getDelaySeconds(SparkConf conf)
public static int getDelaySeconds(SparkConf conf, scala.Enumeration.Value cleanerType)
public static void setDelaySeconds(SparkConf conf, scala.Enumeration.Value cleanerType, int delay)
public static void setDelaySeconds(SparkConf conf, int delay, boolean resetAll)
conf
- SparkConf instancedelay
- default delay time to setresetAll
- whether to reset all to defaultpublic String name()
public void cancel()