T - type the netty tuple comtent.public abstract class AbstractSocketInput<T>
extends org.thales.punch.libraries.storm.api.BaseInputNode
Refer to each for its javadoc documentation.
| Constructor and Description |
|---|
AbstractSocketInput(org.thales.punch.libraries.storm.api.NodeSettings spoutSettings,
org.apache.logging.log4j.Logger subLogger)
A Spout constructor is in charge of setting the fields that will be required later on when the spout will be effectively
started and run somewhere in the cluster.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Object o) |
void |
fail(Object o) |
protected String |
getSocketHostAddress(InetSocketAddress addr) |
void |
open(Map stormSettings,
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.
|
close, deactivate, declareOutputFields, getPublishedStreams, regulate, sendLatencyRecordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected transient Charset charset
public AbstractSocketInput(org.thales.punch.libraries.storm.api.NodeSettings spoutSettings,
org.apache.logging.log4j.Logger subLogger)
spoutSettings - the spout configurationsubLogger - a logger ot make it easier to identify trhe source classpublic void open(Map stormSettings, org.apache.storm.task.TopologyContext topologyContext, org.apache.storm.spout.SpoutOutputCollector collector)
This is called by the Storm runtime at topology activation.
open in interface org.apache.storm.spout.ISpoutopen in class org.thales.punch.libraries.storm.api.BaseInputNodestormSettings - storm configurationtopologyContext - the storm topology contextcollector - the output collector for emitting tuples.public void ack(Object o)
ack in interface org.apache.storm.spout.ISpoutack in class org.thales.punch.libraries.storm.api.BaseInputNodepublic void fail(Object o)
fail in interface org.apache.storm.spout.ISpoutfail in class org.thales.punch.libraries.storm.api.BaseInputNodeprotected String getSocketHostAddress(InetSocketAddress addr)
Copyright © 2023. All rights reserved.