Open Kilda Java Documentation
TestingKafkaBolt.java
Go to the documentation of this file.
1 /* Copyright 2017 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.wfm.topology;
17 
18 import org.apache.storm.kafka.bolt.KafkaBolt;
19 import org.apache.storm.task.OutputCollector;
20 import org.apache.storm.task.TopologyContext;
21 import org.apache.storm.tuple.Tuple;
22 
23 import java.util.Map;
24 
29 public class TestingKafkaBolt extends KafkaBolt {
30 
31  public TestingKafkaBolt() {
32  }
33 
34  @Override
35  protected void process(Tuple input) {
36  }
37 
38  @Override
39  public void execute(Tuple tuple) {
40  }
41 
42  @Override
43  public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {
44  }
45 
46  @Override
47  public void cleanup() {
48  }
49 
50 }
void prepare(Map stormConf, TopologyContext context, OutputCollector collector)