org.apache.storm.hdfs.bolt
Class AbstractHdfsBolt

java.lang.Object
  extended by backtype.storm.topology.base.BaseComponent
      extended by backtype.storm.topology.base.BaseRichBolt
          extended by org.apache.storm.hdfs.bolt.AbstractHdfsBolt
All Implemented Interfaces:
IBolt, IComponent, IRichBolt, Serializable
Direct Known Subclasses:
HdfsBolt, SequenceFileBolt

public abstract class AbstractHdfsBolt
extends BaseRichBolt

See Also:
Serialized Form

Field Summary
protected  OutputCollector collector
           
protected  String configKey
           
protected  FileNameFormat fileNameFormat
           
protected  org.apache.hadoop.fs.FileSystem fs
           
protected  String fsUrl
           
protected  org.apache.hadoop.conf.Configuration hdfsConfig
           
protected  int rotation
           
protected  ArrayList<RotationAction> rotationActions
           
protected  FileRotationPolicy rotationPolicy
           
protected  Timer rotationTimer
           
protected  SyncPolicy syncPolicy
           
protected  Object writeLock
           
 
Constructor Summary
AbstractHdfsBolt()
           
 
Method Summary
 void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
           
 void prepare(Map conf, TopologyContext topologyContext, OutputCollector collector)
          Marked as final to prevent override.
protected  void rotateOutputFile()
           
 
Methods inherited from class backtype.storm.topology.base.BaseRichBolt
cleanup
 
Methods inherited from class backtype.storm.topology.base.BaseComponent
getComponentConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface backtype.storm.task.IBolt
execute
 
Methods inherited from interface backtype.storm.topology.IComponent
getComponentConfiguration
 

Field Detail

rotationActions

protected ArrayList<RotationAction> rotationActions

collector

protected OutputCollector collector

fs

protected transient org.apache.hadoop.fs.FileSystem fs

syncPolicy

protected SyncPolicy syncPolicy

rotationPolicy

protected FileRotationPolicy rotationPolicy

fileNameFormat

protected FileNameFormat fileNameFormat

rotation

protected int rotation

fsUrl

protected String fsUrl

configKey

protected String configKey

writeLock

protected transient Object writeLock

rotationTimer

protected transient Timer rotationTimer

hdfsConfig

protected transient org.apache.hadoop.conf.Configuration hdfsConfig
Constructor Detail

AbstractHdfsBolt

public AbstractHdfsBolt()
Method Detail

rotateOutputFile

protected void rotateOutputFile()
                         throws IOException
Throws:
IOException

prepare

public final void prepare(Map conf,
                          TopologyContext topologyContext,
                          OutputCollector collector)
Marked as final to prevent override. Subclasses should implement the doPrepare() method.

Parameters:
conf -
topologyContext -
collector -

declareOutputFields

public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)


Copyright © 2016 The Apache Software Foundation. All Rights Reserved.