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,
SecurityManager securityMgr) |
<T> HttpBroadcast<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, SecurityManager securityMgr)
initialize
in interface BroadcastFactory
public <T> HttpBroadcast<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 variablepublic 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