this class keeps track of all ready partitions (and their subpartitions) It keeps track of the ref cnt for each partition and associated data emitter A data emitter is notified once there is data for its partition. Pinning a partition for a Consumer/Producer means increasing its reference counter to n: Consumer: there are n "listeners" that are to consume the data of a partition Producer: there are n "emitters" that are to produce the data for a partition When the reference counter reaches 0, it means that none requires a partition.
More...
#include <PartitionManager.hpp>
this class keeps track of all ready partitions (and their subpartitions) It keeps track of the ref cnt for each partition and associated data emitter A data emitter is notified once there is data for its partition. Pinning a partition for a Consumer/Producer means increasing its reference counter to n: Consumer: there are n "listeners" that are to consume the data of a partition Producer: there are n "emitters" that are to produce the data for a partition When the reference counter reaches 0, it means that none requires a partition.
◆ PartitionManager()
NES::Network::PartitionManager::PartitionManager |
( |
| ) |
|
|
default |
◆ ~PartitionManager()
NES::Network::PartitionManager::~PartitionManager |
( |
| ) |
|
◆ addSubpartitionEventListener()
bool NES::Network::PartitionManager::addSubpartitionEventListener |
( |
NesPartition |
partition, |
|
|
NodeLocation |
nodeLocation, |
|
|
Runtime::RuntimeEventListenerPtr |
eventListener |
|
) |
| |
◆ clear()
void NES::Network::PartitionManager::clear |
( |
| ) |
|
◆ getConsumerRegistrationStatus()
checks if a partition is registered
- Parameters
-
- Returns
- a PartitionRegistrationStatus
References NES::Util::partition().
◆ getDataEmitter()
DataEmitterPtr NES::Network::PartitionManager::getDataEmitter |
( |
NesPartition |
partition | ) |
|
Returns the data emitter of a partition.
- Parameters
-
- Returns
- the data emitter of a partition
References NES::Util::partition().
◆ getEventListener()
Retrieve event listener for a partition.
- Parameters
-
partition | the partition to lookup |
- Returns
- the event listener for a partition
References NES::Util::partition().
◆ getProducerRegistrationStatus()
checks if a partition is registered
- Parameters
-
- Returns
- a PartitionRegistrationStatus
References NES::Util::partition().
◆ getSubpartitionConsumerCounter()
std::optional< uint64_t > NES::Network::PartitionManager::getSubpartitionConsumerCounter |
( |
NesPartition |
partition | ) |
|
Returns the current counter of a given partition. Throws error if not existing.
- Parameters
-
- Returns
- the counter of the partition
- Exceptions
-
std::out_of_range | If no such data is present. |
References NES::Util::partition().
◆ getSubpartitionProducerCounter()
std::optional< uint64_t > NES::Network::PartitionManager::getSubpartitionProducerCounter |
( |
NesPartition |
partition | ) |
|
Returns the current counter of a given partition. Throws error if not existing.
- Parameters
-
- Returns
- the counter of the partition
- Exceptions
-
std::out_of_range | If no such data is present. |
References NES::Util::partition().
◆ getVersion()
get the current version number of the operator associated with this partition
- Parameters
-
partition | the partition for which to get the version number |
- Returns
- the currrent version number
References NES_ASSERT, and NES::Util::partition().
◆ pinSubpartitionConsumer()
void NES::Network::PartitionManager::pinSubpartitionConsumer |
( |
NesPartition |
partition | ) |
|
◆ pinSubpartitionProducer()
void NES::Network::PartitionManager::pinSubpartitionProducer |
( |
NesPartition |
partition | ) |
|
◆ registerSubpartitionConsumer()
bool NES::Network::PartitionManager::registerSubpartitionConsumer |
( |
NesPartition |
partition, |
|
|
NodeLocation |
nodeLocation, |
|
|
DataEmitterPtr |
emitter |
|
) |
| |
◆ registerSubpartitionProducer()
bool NES::Network::PartitionManager::registerSubpartitionProducer |
( |
NesPartition |
partition, |
|
|
NodeLocation |
nodeLocation |
|
) |
| |
◆ unregisterSubpartitionConsumer()
bool NES::Network::PartitionManager::unregisterSubpartitionConsumer |
( |
NesPartition |
partition | ) |
|
◆ unregisterSubpartitionProducer()
bool NES::Network::PartitionManager::unregisterSubpartitionProducer |
( |
NesPartition |
partition | ) |
|
The documentation for this class was generated from the following files: