The Stage
On this page, we will create a stage (not a producing stage) that is capable of reading from a HelloWorldSchema pipe and do something with that information.
Creating the Stage
Let's assume our person being greeted is called a guest. After all, they're being warmly welcomed into the Pronghorn ecosystem!
Create a new file named GuestStage.java under src/main/java/com.ociweb
with the following contents:
package com.ociweb;
import com.ociweb.pronghorn.pipe.Pipe;
import com.ociweb.pronghorn.pipe.PipeReader;
import com.ociweb.pronghorn.stage.PronghornStage;
import com.ociweb.pronghorn.stage.scheduling.GraphManager;
public class GuestStage extends PronghornStage {
private Pipe<HelloWorldSchema> input;
public GuestStage(GraphManager graphManager, Pipe<HelloWorldSchema> input) {
super(graphManager, input, NONE);
this.input = input;
}
@Override
public void startup() {
}
@Override
public void run() {
}
@Override
public void shutdown() {
}
}