public class PartitionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PartitionManager.OffsetData |
Constructor and Description |
---|
PartitionManager(DynamicPartitionConnections connections,
java.lang.String topologyInstanceId,
ZkState state,
java.util.Map<java.lang.String,java.lang.Object> stormConf,
SpoutConfig spoutConfig,
Partition id)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
ack(java.lang.Long offset) |
void |
close() |
void |
commit() |
void |
fail(java.lang.Long offset) |
java.util.Map<java.lang.String,java.lang.Object> |
getMetricsDataMap() |
PartitionManager.OffsetData |
getOffsetData() |
Partition |
getPartition() |
long |
lastCompletedOffset() |
org.apache.storm.kafka.KafkaSpout.EmitState |
next(SpoutOutputCollector collector) |
public PartitionManager(DynamicPartitionConnections connections, java.lang.String topologyInstanceId, ZkState state, java.util.Map<java.lang.String,java.lang.Object> stormConf, SpoutConfig spoutConfig, Partition id)
connections
- topologyInstanceId
- state
- stormConf
- spoutConfig
- id
- public java.util.Map<java.lang.String,java.lang.Object> getMetricsDataMap()
public org.apache.storm.kafka.KafkaSpout.EmitState next(SpoutOutputCollector collector)
public void ack(java.lang.Long offset)
public void fail(java.lang.Long offset)
public void commit()
public long lastCompletedOffset()
public PartitionManager.OffsetData getOffsetData()
public Partition getPartition()
public void close()