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, resourceBasedConfigurationFileaddListener, addProperties, addSource, destroy, getApplicationContext, getClassLoader, getComponent, getComponent, getProperties, initialize, isRunning, setParentContextgetDeploymentProperties, getDescriptor, getName, getType, toStringpublic 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.Lifecyclestart in class SimpleModulepublic 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.Lifecyclestop in class SimpleModulepublic boolean shouldBind()
ModuleshouldBind in interface ModuleshouldBind in class AbstractModule