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, getSocketHostAddress
deactivate, declareOutputFields, getPublishedStreams, regulate, sendLatencyRecord
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onActive, onInactive, onThrowable
public 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)
AbstractSocketInput
This is called by the Storm runtime at topology activation.
open
in interface org.apache.storm.spout.ISpout
open
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.ISpout
public 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.ISpout
close
in class org.thales.punch.libraries.storm.api.BaseInputNode
Copyright © 2023. All rights reserved.