public class ZkCoordinator extends Object implements PartitionCoordinator
Constructor and Description |
---|
ZkCoordinator(DynamicPartitionConnections connections,
Map stormConf,
SpoutConfig spoutConfig,
ZkState state,
int taskIndex,
int totalTasks,
int taskId,
String topologyInstanceId) |
ZkCoordinator(DynamicPartitionConnections connections,
Map stormConf,
SpoutConfig spoutConfig,
ZkState state,
int taskIndex,
int totalTasks,
int taskId,
String topologyInstanceId,
DynamicBrokersReader reader) |
Modifier and Type | Method and Description |
---|---|
PartitionManager |
getManager(Partition partition) |
List<PartitionManager> |
getMyManagedPartitions() |
void |
refresh() |
public ZkCoordinator(DynamicPartitionConnections connections, Map stormConf, SpoutConfig spoutConfig, ZkState state, int taskIndex, int totalTasks, int taskId, String topologyInstanceId)
public ZkCoordinator(DynamicPartitionConnections connections, Map stormConf, SpoutConfig spoutConfig, ZkState state, int taskIndex, int totalTasks, int taskId, String topologyInstanceId, DynamicBrokersReader reader)
public List<PartitionManager> getMyManagedPartitions()
getMyManagedPartitions
in interface PartitionCoordinator
public void refresh()
refresh
in interface PartitionCoordinator
public PartitionManager getManager(Partition partition)
getManager
in interface PartitionCoordinator
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.