Package org.apache.pinot.spi.stream
Interface StreamDataServerStartable
-
public interface StreamDataServerStartableStreamDataServerStartable is the interface for stream data sources. Each stream data connector should implement a mock/wrapper of the data server. E.g. KafkaDataServerStartable is a wrapper class of Kafka 0.9 broker.
-
-
Method Summary
Modifier and Type Method Description voidcreateTopic(String topic, Properties topicProps)Create a data stream (e.g Kafka topic) in the server.intgetPort()Get the port of the server.voidinit(Properties props)Init the server.voidstart()Start the servervoidstop()Stop the server
-
-
-
Method Detail
-
init
void init(Properties props)
Init the server.- Parameters:
props-
-
start
void start()
Start the server
-
stop
void stop()
Stop the server
-
createTopic
void createTopic(String topic, Properties topicProps)
Create a data stream (e.g Kafka topic) in the server.- Parameters:
topic-topicProps-
-
getPort
int getPort()
Get the port of the server.
-
-