public class SparkStreamingDriverModule extends ResourceConfiguredModule
Processor
or org.springframework.xd.spark.streaming.scala.Processor
to be executed as an XD module.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MESSAGE_BUS_JARS_LOCATION |
Constructor and Description |
---|
SparkStreamingDriverModule(ModuleDescriptor descriptor,
ModuleDeploymentProperties deploymentProperties,
java.lang.ClassLoader classLoader,
ModuleOptions moduleOptions)
Create a SparkDriver
|
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
getSparkModuleProperties(SparkStreamingSupport processor)
Retrieve spark configuration properties from the
Processor implementation. |
boolean |
shouldBind()
Should the module require messagebus binding.
|
void |
start() |
void |
stop() |
configureModuleApplicationContext, resourceBasedConfigurationFile
addListener, addProperties, addSource, destroy, getApplicationContext, getClassLoader, getComponent, getComponent, getProperties, initialize, isRunning, setParentContext
getDeploymentProperties, getDescriptor, getName, getType, toString
public static final java.lang.String MESSAGE_BUS_JARS_LOCATION
public SparkStreamingDriverModule(ModuleDescriptor descriptor, ModuleDeploymentProperties deploymentProperties, java.lang.ClassLoader classLoader, ModuleOptions moduleOptions)
descriptor
- deploymentProperties
- classLoader
- moduleOptions
- public void start()
start
in interface org.springframework.context.Lifecycle
start
in class SimpleModule
public static java.util.Properties getSparkModuleProperties(SparkStreamingSupport processor)
Processor
implementation.
This method uses SparkConfig
annotation to derive the Properties
returned
from the annotated methods.processor
- the spark streaming processorpublic void stop()
stop
in interface org.springframework.context.Lifecycle
stop
in class SimpleModule
public boolean shouldBind()
Module
shouldBind
in interface Module
shouldBind
in class AbstractModule