public class FileSpout extends AbstractFileInput implements org.thales.punch.libraries.storm.api.ISpout
FileSpoutWatcher
.
To get the complete Java documentation, please see the
AbstractFileInput
.
AbstractFileInput.Item
failed, inputQueue, inputQueues, orderedRead, path, pathRegexPattern, processAlreadyExisting, queueSize
Constructor and Description |
---|
FileSpout(org.thales.punch.libraries.storm.api.NodeSettings settings) |
Modifier and Type | Method and Description |
---|---|
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.
|
ack, drainNextLogs, emitNextLine, fail, getListFiles, nextTuple, readOneFile
close, deactivate, declareOutputFields, getPublishedStreams, regulate, sendLatencyRecord
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerNextTupleCallback
public FileSpout(org.thales.punch.libraries.storm.api.NodeSettings settings)
settings
- the spout settingspublic 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.ISpout
open
in class AbstractFileInput
stormSettings
- storm configurationtopologyContext
- the storm topology contextcollector
- the output collector for emitting tuples.Copyright © 2022. All rights reserved.