backtype.storm.transactional.partitioned
Class PartitionedTransactionalSpoutExecutor

java.lang.Object
  extended by backtype.storm.transactional.partitioned.PartitionedTransactionalSpoutExecutor
All Implemented Interfaces:
IComponent, ITransactionalSpout<java.lang.Integer>, java.io.Serializable

public class PartitionedTransactionalSpoutExecutor
extends java.lang.Object
implements ITransactionalSpout<java.lang.Integer>

See Also:
Serialized Form

Constructor Summary
PartitionedTransactionalSpoutExecutor(IPartitionedTransactionalSpout spout)
           
 
Method Summary
 void declareOutputFields(OutputFieldsDeclarer declarer)
          Declare the output schema for all the streams of this topology.
 java.util.Map<java.lang.String,java.lang.Object> getComponentConfiguration()
          Declare configuration specific to this component.
 ITransactionalSpout.Coordinator getCoordinator(java.util.Map conf, TopologyContext context)
          The coordinator for a TransactionalSpout runs in a single thread and indicates when batches of tuples should be emitted and when transactions should commit.
 ITransactionalSpout.Emitter getEmitter(java.util.Map conf, TopologyContext context)
          The emitter for a TransactionalSpout runs as many tasks across the cluster.
 IPartitionedTransactionalSpout getPartitionedSpout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionedTransactionalSpoutExecutor

public PartitionedTransactionalSpoutExecutor(IPartitionedTransactionalSpout spout)
Method Detail

getPartitionedSpout

public IPartitionedTransactionalSpout getPartitionedSpout()

getCoordinator

public ITransactionalSpout.Coordinator getCoordinator(java.util.Map conf,
                                                      TopologyContext context)
Description copied from interface: ITransactionalSpout
The coordinator for a TransactionalSpout runs in a single thread and indicates when batches of tuples should be emitted and when transactions should commit. The Coordinator that you provide in a TransactionalSpout provides metadata for each transaction so that the transactions can be replayed.

Specified by:
getCoordinator in interface ITransactionalSpout<java.lang.Integer>

getEmitter

public ITransactionalSpout.Emitter getEmitter(java.util.Map conf,
                                              TopologyContext context)
Description copied from interface: ITransactionalSpout
The emitter for a TransactionalSpout runs as many tasks across the cluster. Emitters are responsible for emitting batches of tuples for a transaction and must ensure that the same batch of tuples is always emitted for the same transaction id.

Specified by:
getEmitter in interface ITransactionalSpout<java.lang.Integer>

declareOutputFields

public void declareOutputFields(OutputFieldsDeclarer declarer)
Description copied from interface: IComponent
Declare the output schema for all the streams of this topology.

Specified by:
declareOutputFields in interface IComponent
Parameters:
declarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream

getComponentConfiguration

public java.util.Map<java.lang.String,java.lang.Object> getComponentConfiguration()
Description copied from interface: IComponent
Declare configuration specific to this component. Only a subset of the "topology.*" configs can be overridden. The component configuration can be further overridden when constructing the topology using TopologyBuilder

Specified by:
getComponentConfiguration in interface IComponent