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