public class StaticPartitionCoordinator extends Object implements IPartitionCoordinator
Modifier and Type | Field and Description |
---|---|
protected EventHubSpoutConfig |
config |
protected Map<String,IPartitionManager> |
partitionManagerMap |
protected List<IPartitionManager> |
partitionManagers |
protected IStateStore |
stateStore |
protected int |
taskIndex |
protected int |
totalTasks |
Constructor and Description |
---|
StaticPartitionCoordinator(EventHubSpoutConfig spoutConfig,
int taskIndex,
int totalTasks,
IStateStore stateStore,
IPartitionManagerFactory pmFactory,
IEventHubReceiverFactory recvFactory) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
calculateParititionIdsToOwn() |
List<IPartitionManager> |
getMyPartitionManagers() |
IPartitionManager |
getPartitionManager(String partitionId) |
protected final EventHubSpoutConfig config
protected final int taskIndex
protected final int totalTasks
protected final List<IPartitionManager> partitionManagers
protected final Map<String,IPartitionManager> partitionManagerMap
protected final IStateStore stateStore
public StaticPartitionCoordinator(EventHubSpoutConfig spoutConfig, int taskIndex, int totalTasks, IStateStore stateStore, IPartitionManagerFactory pmFactory, IEventHubReceiverFactory recvFactory)
public List<IPartitionManager> getMyPartitionManagers()
getMyPartitionManagers
in interface IPartitionCoordinator
public IPartitionManager getPartitionManager(String partitionId)
getPartitionManager
in interface IPartitionCoordinator
Copyright © 2020 The Apache Software Foundation. All rights reserved.