public class SocketBolt extends BaseRichBolt
The Bolt implementation for Socket. Only available for Storm SQL. The class doesn’t handle reconnection so you may not want to use this for production.
| Constructor and Description |
|---|
SocketBolt(IOutputSerializer serializer,
String host,
int port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
execute(Tuple input) |
void |
prepare(Map<String,Object> topoConf,
TopologyContext context,
OutputCollector collector) |
getComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic SocketBolt(IOutputSerializer serializer, String host, int port)
Constructor.
public void prepare(Map<String,Object> topoConf, TopologyContext context, OutputCollector collector)
public void execute(Tuple input)
public void cleanup()
cleanup in interface IBoltcleanup in class BaseRichBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2022 The Apache Software Foundation. All rights reserved.