public class StormStreamer<K,V> extends StreamAdapter<org.apache.storm.tuple.Tuple,K,V> implements org.apache.storm.topology.IRichBolt
| Modifier and Type | Class and Description |
|---|---|
static class |
StormStreamer.StreamerContext
Streamer context initializing grid and data streamer instances on demand.
|
ignite| Constructor and Description |
|---|
StormStreamer() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up the streamer when the bolt is going to shutdown.
|
void |
declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)
Normally declares output fields for the stream of the topology.
|
void |
execute(org.apache.storm.tuple.Tuple tuple)
Transfers data into grid.
|
boolean |
getAllowOverwrite()
Obtains flag for enabling overwriting existing values in cache.
|
long |
getAutoFlushFrequency()
Obtains data flush frequency.
|
String |
getCacheName()
Gets the cache name.
|
Map<String,Object> |
getComponentConfiguration()
Not used.
|
String |
getIgniteConfigFile()
Gets Ignite configuration file.
|
String |
getIgniteTupleField()
Gets Ignite tuple field, by which tuple data is obtained in topology.
|
void |
prepare(Map map,
org.apache.storm.task.TopologyContext topologyContext,
org.apache.storm.task.OutputCollector collector)
Initializes Ignite client instance from a configuration file and declares the output collector of the bolt.
|
void |
setAllowOverwrite(boolean allowOverwrite)
Enables overwriting existing values in cache.
|
void |
setAutoFlushFrequency(long autoFlushFrequency)
Specifies data flush frequency into the grid.
|
void |
setCacheName(String cacheName)
Sets the cache name.
|
void |
setIgniteConfigFile(String igniteConfigFile)
Specifies Ignite configuration file.
|
void |
setIgniteTupleField(String igniteTupleField)
Names Ignite tuple field, by which tuple data is obtained in topology.
|
void |
start()
Starts streamer.
|
void |
stop()
Stops streamer.
|
addMessage, getIgnite, getMultipleTupleExtractor, getSingleTupleExtractor, getStreamer, getTupleExtractor, setIgnite, setMultipleTupleExtractor, setSingleTupleExtractor, setStreamer, setTupleExtractorpublic String getIgniteTupleField()
public void setIgniteTupleField(String igniteTupleField)
igniteTupleField - Name of tuple field.public String getCacheName()
public void setCacheName(String cacheName)
cacheName - Cache name.public String getIgniteConfigFile()
public void setIgniteConfigFile(String igniteConfigFile)
igniteConfigFile - Ignite config file.public long getAutoFlushFrequency()
public void setAutoFlushFrequency(long autoFlushFrequency)
autoFlushFrequency - Flush frequency.public boolean getAllowOverwrite()
public void setAllowOverwrite(boolean allowOverwrite)
allowOverwrite - Flag value.public void start()
throws IgniteException
IgniteException - If failed.public void stop()
throws IgniteException
IgniteException - If failed.public void prepare(Map map, org.apache.storm.task.TopologyContext topologyContext, org.apache.storm.task.OutputCollector collector)
prepare in interface org.apache.storm.task.IBoltmap - Map derived from topology.topologyContext - Context topology in storm.collector - Output collector.public void execute(org.apache.storm.tuple.Tuple tuple)
execute in interface org.apache.storm.task.IBolttuple - Storm tuple.public void cleanup()
cleanup in interface org.apache.storm.task.IBoltpublic void declareOutputFields(org.apache.storm.topology.OutputFieldsDeclarer declarer)
declareOutputFields in interface org.apache.storm.topology.IComponentdeclarer - OutputFieldsDeclarer.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019