public class HttpBroadcastFactory extends Object implements BroadcastFactory
BroadcastFactory
implementation that uses a
HTTP server as the broadcast mechanism. Refer to
HttpBroadcast
for more details about this mechanism.Constructor and Description |
---|
HttpBroadcastFactory() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(boolean isDriver,
SparkConf conf,
org.apache.spark.SecurityManager securityMgr) |
<T> org.apache.spark.broadcast.HttpBroadcast<T> |
newBroadcast(T value_,
boolean isLocal,
long id,
scala.reflect.ClassTag<T> evidence$1) |
void |
stop() |
void |
unbroadcast(long id,
boolean removeFromDriver,
boolean blocking)
Remove all persisted state associated with the HTTP broadcast with the given ID.
|
public void initialize(boolean isDriver, SparkConf conf, org.apache.spark.SecurityManager securityMgr)
initialize
in interface BroadcastFactory
public <T> org.apache.spark.broadcast.HttpBroadcast<T> newBroadcast(T value_, boolean isLocal, long id, scala.reflect.ClassTag<T> evidence$1)
newBroadcast
in interface BroadcastFactory
public void stop()
stop
in interface BroadcastFactory
public void unbroadcast(long id, boolean removeFromDriver, boolean blocking)
unbroadcast
in interface BroadcastFactory
removeFromDriver
- Whether to remove state from the driverblocking
- Whether to block until unbroadcasted