public class AsyncEventQueue extends Object implements Logging
Delivery will only begin when the start()
method is called. The stop()
method should be
called when no more events need to be delivered.
Constructor and Description |
---|
AsyncEventQueue(String name,
SparkConf conf,
org.apache.spark.scheduler.LiveListenerBusMetrics metrics) |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(L listener) |
void |
doPostEvent(org.apache.spark.scheduler.SparkListenerInterface listener,
SparkListenerEvent event) |
String |
name() |
static Object |
POISON_PILL() |
void |
post(SparkListenerEvent event) |
static void |
postToAll(E event) |
static void |
removeListener(L listener) |
boolean |
waitUntilEmpty(long deadline)
For testing only.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public AsyncEventQueue(String name, SparkConf conf, org.apache.spark.scheduler.LiveListenerBusMetrics metrics)
public static Object POISON_PILL()
public static final void addListener(L listener)
public static final void removeListener(L listener)
public static void postToAll(E event)
public String name()
public void post(SparkListenerEvent event)
public boolean waitUntilEmpty(long deadline)
deadline
- (undocumented)public void doPostEvent(org.apache.spark.scheduler.SparkListenerInterface listener, SparkListenerEvent event)