public class HttpBroadcastFactory extends java.lang.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> Broadcast<T> |
newBroadcast(T value_,
boolean isLocal,
long id,
scala.reflect.ClassTag<T> evidence$1)
Creates a new broadcast variable.
|
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> Broadcast<T> newBroadcast(T value_, boolean isLocal, long id, scala.reflect.ClassTag<T> evidence$1)
BroadcastFactory
newBroadcast
in interface BroadcastFactory
value_
- value to broadcastisLocal
- whether we are in local mode (single JVM process)id
- unique id representing this broadcast variableevidence$1
- (undocumented)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 unbroadcastedid
- (undocumented)