public class ZkCoordinator extends java.lang.Object implements PartitionCoordinator
Constructor and Description |
---|
ZkCoordinator(DynamicPartitionConnections connections,
java.util.Map<java.lang.String,java.lang.Object> stormConf,
SpoutConfig spoutConfig,
ZkState state,
int taskIndex,
int totalTasks,
java.lang.String topologyInstanceId) |
ZkCoordinator(DynamicPartitionConnections connections,
java.util.Map<java.lang.String,java.lang.Object> stormConf,
SpoutConfig spoutConfig,
ZkState state,
int taskIndex,
int totalTasks,
java.lang.String topologyInstanceId,
DynamicBrokersReader reader) |
Modifier and Type | Method and Description |
---|---|
PartitionManager |
getManager(Partition partition) |
java.util.List<PartitionManager> |
getMyManagedPartitions() |
int |
getTaskIndex() |
void |
refresh() |
public ZkCoordinator(DynamicPartitionConnections connections, java.util.Map<java.lang.String,java.lang.Object> stormConf, SpoutConfig spoutConfig, ZkState state, int taskIndex, int totalTasks, java.lang.String topologyInstanceId)
public ZkCoordinator(DynamicPartitionConnections connections, java.util.Map<java.lang.String,java.lang.Object> stormConf, SpoutConfig spoutConfig, ZkState state, int taskIndex, int totalTasks, java.lang.String topologyInstanceId, DynamicBrokersReader reader)
public int getTaskIndex()
public java.util.List<PartitionManager> getMyManagedPartitions()
getMyManagedPartitions
in interface PartitionCoordinator
public void refresh()
refresh
in interface PartitionCoordinator
public PartitionManager getManager(Partition partition)
getManager
in interface PartitionCoordinator