public class PartitionManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PartitionManager.OffsetData |
Constructor and Description |
---|
PartitionManager(DynamicPartitionConnections connections,
String topologyInstanceId,
ZkState state,
Map stormConf,
SpoutConfig spoutConfig,
Partition id) |
PartitionManager(DynamicPartitionConnections connections,
String topologyInstanceId,
ZkState state,
Map stormConf,
SpoutConfig spoutConfig,
Partition id,
PartitionManager previousManager) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Long offset) |
void |
close() |
void |
commit() |
protected String |
committedPath() |
void |
fail(Long offset) |
Map |
getMetricsDataMap() |
PartitionManager.OffsetData |
getOffsetData() |
Partition |
getPartition() |
long |
lastCompletedOffset() |
org.apache.storm.kafka.KafkaSpout.EmitState |
next(SpoutOutputCollector collector) |
public PartitionManager(DynamicPartitionConnections connections, String topologyInstanceId, ZkState state, Map stormConf, SpoutConfig spoutConfig, Partition id)
public PartitionManager(DynamicPartitionConnections connections, String topologyInstanceId, ZkState state, Map stormConf, SpoutConfig spoutConfig, Partition id, PartitionManager previousManager)
previousManager
- previous partition manager if manager for partition is being recreatedpublic Map getMetricsDataMap()
public org.apache.storm.kafka.KafkaSpout.EmitState next(SpoutOutputCollector collector)
public void ack(Long offset)
public void fail(Long offset)
public void commit()
protected String committedPath()
public long lastCompletedOffset()
public PartitionManager.OffsetData getOffsetData()
public Partition getPartition()
public void close()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.