public class ModuleExecutor extends java.lang.Object implements SparkStreamingModuleExecutor<org.apache.spark.streaming.api.java.JavaReceiverInputDStream,Processor>, java.io.Serializable
Processor
and handles the output DStream if present.Constructor and Description |
---|
ModuleExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.apache.spark.streaming.api.java.JavaReceiverInputDStream input,
Processor processor,
SparkMessageSender sender)
The execute method that runs the computation on input by invoking the underlying
processor's process method and make the output available for
$
SparkMessageSender if needed. |
public void execute(org.apache.spark.streaming.api.java.JavaReceiverInputDStream input, Processor processor, SparkMessageSender sender)
SparkStreamingModuleExecutor
SparkMessageSender
if needed.execute
in interface SparkStreamingModuleExecutor<org.apache.spark.streaming.api.java.JavaReceiverInputDStream,Processor>
input
- the input received by the spark streaming receiverprocessor
- the underlying processor implementation (java or scala based)sender
- the message sender