Home » Microsoft » 70-475 v.2 » Which type of object should you initialize in the main class?
You are developing an Apache Storm application by using Microsoft Visual Studio.
You need to implement a custom topology that uses a custom bolt.
Which type of object should you initialize in the main class?
A. Stream
B. TopologyBuilder
C. StreamInfo
D. Logger
Correct Answer: B
Explanation/Reference:
Bolts: Performs processing on streams emitted by spouts or other bolts, and emits one or more streams.
The important method is GetTopologyBuilder, which is used to define the topology that is submitted to Storm.
The topology ties the spouts and bolts together into a graph, which defines how data flows between the components.
References:
https://docs.microsoft.com/en-us/azure/hdinsight/storm/apache-storm-develop-java-topology