Class PullRequestMergedEventsStream
- java.lang.Object
-
- org.apache.pinot.tools.streams.githubevents.PullRequestMergedEventsStream
-
public class PullRequestMergedEventsStream extends Object
Creates a Kafka producer, for given kafka broker list Continuously fetches github events data. Creates a PullRequestMergedEvent for each valid PR event. Publishes the PullRequestMergedEvent to the given kafka topic
-
-
Constructor Summary
Constructors Constructor Description PullRequestMergedEventsStream(String schemaFilePath, String topicName, String kafkaBrokerList, String personalAccessToken)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Starts the stream.static voidmain(String[] args)voidshutdown()Shuts down the stream.voidstart()
-
-
-
Method Detail
-
execute
public void execute()
Starts the stream. Adds shutdown hook.
-
shutdown
public void shutdown() throws IOException, InterruptedExceptionShuts down the stream.- Throws:
IOExceptionInterruptedException
-
start
public void start()
-
-