public class SocketSpout extends Object implements IRichSpout
Spout for Socket data. Only available for Storm SQL. The class doesn’t handle reconnection, so you may not want to use this for production.
| Constructor and Description |
|---|
SocketSpout(Scheme scheme,
String host,
int port)
SocketSpout Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Object msgId) |
void |
activate() |
void |
close() |
void |
deactivate() |
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
fail(Object msgId) |
Map<String,Object> |
getComponentConfiguration() |
void |
nextTuple() |
void |
open(Map<String,Object> conf,
TopologyContext context,
SpoutOutputCollector collector) |
public void open(Map<String,Object> conf, TopologyContext context, SpoutOutputCollector collector)
public void deactivate()
deactivate in interface ISpoutpublic void declareOutputFields(OutputFieldsDeclarer declarer)
declareOutputFields in interface IComponentpublic Map<String,Object> getComponentConfiguration()
getComponentConfiguration in interface IComponentCopyright © 2022 The Apache Software Foundation. All rights reserved.