public class RelpInput extends AbstractSocketInput<org.thales.punch.netty.relp.proto.RELPFrame> implements org.thales.punch.netty.api.INettyReaderCallback<org.thales.punch.netty.relp.proto.RELPFrame>
charset| Constructor and Description |
|---|
RelpInput(org.thales.punch.libraries.storm.api.NodeSettings spoutSettings,
org.thales.punch.libraries.storm.api.ITopologySettings topologySettings)
Create a new Relp spout
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Class<?> |
getType() |
void |
nextTuple() |
void |
onReceive(io.netty.channel.ChannelHandlerContext ctx,
org.thales.punch.netty.api.INettyTuple<org.thales.punch.netty.relp.proto.RELPFrame> nettyTuple) |
void |
open(Map conf,
org.apache.storm.task.TopologyContext topologyContext,
org.apache.storm.spout.SpoutOutputCollector collector)
Setup this spout before it starts receiving data and emitting tuples into the topology.
|
ack, fail, getSocketHostAddressdeactivate, declareOutputFields, getPublishedStreams, regulate, sendLatencyRecordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonActive, onInactive, onThrowablepublic RelpInput(org.thales.punch.libraries.storm.api.NodeSettings spoutSettings,
org.thales.punch.libraries.storm.api.ITopologySettings topologySettings)
spoutSettings - the spout configuration.topologySettings - the spout configuration subsectionpublic void open(Map conf, org.apache.storm.task.TopologyContext topologyContext, org.apache.storm.spout.SpoutOutputCollector collector)
AbstractSocketInputThis is called by the Storm runtime at topology activation.
open in interface org.apache.storm.spout.ISpoutopen in class AbstractSocketInput<org.thales.punch.netty.relp.proto.RELPFrame>conf - storm configurationtopologyContext - the storm topology contextcollector - the output collector for emitting tuples.public void nextTuple()
nextTuple in interface org.apache.storm.spout.ISpoutpublic void onReceive(io.netty.channel.ChannelHandlerContext ctx,
org.thales.punch.netty.api.INettyTuple<org.thales.punch.netty.relp.proto.RELPFrame> nettyTuple)
onReceive in interface org.thales.punch.netty.api.INettyReaderCallback<org.thales.punch.netty.relp.proto.RELPFrame>public Class<?> getType()
getType in interface org.thales.punch.netty.api.INettyReaderCallback<org.thales.punch.netty.relp.proto.RELPFrame>public void close()
close in interface org.apache.storm.spout.ISpoutclose in class org.thales.punch.libraries.storm.api.BaseInputNodeCopyright © 2023. All rights reserved.