Class PartitionReplicaIngestionContext
- java.lang.Object
-
- com.linkedin.davinci.kafka.consumer.PartitionReplicaIngestionContext
-
public class PartitionReplicaIngestionContext extends java.lang.Object
This class is for wrapping the information about the role of the partition replica on that host toAggKafkaConsumerService
to achieve finer granularity of consumer assignment. Those information should be triggered by store version role (future, current and backup), workload type and leader or follower state. Version role and workload type information are properly managed byStoreIngestionTask
to be sent toAggKafkaConsumerService
. We could add more information regarding this partition replica if needed in the future.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PartitionReplicaIngestionContext.VersionRole
static class
PartitionReplicaIngestionContext.WorkloadType
-
Constructor Summary
Constructors Constructor Description PartitionReplicaIngestionContext(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PubSubTopicPartition
getPubSubTopicPartition()
static PartitionReplicaIngestionContext.VersionRole
getStoreVersionRole(PubSubTopic versionTopic, Store store)
PartitionReplicaIngestionContext.VersionRole
getVersionRole()
PubSubTopic
getVersionTopic()
PartitionReplicaIngestionContext.WorkloadType
getWorkloadType()
static PartitionReplicaIngestionContext.WorkloadType
getWorkloadType(PubSubTopic versionTopic, Store store)
-
-
-
Constructor Detail
-
PartitionReplicaIngestionContext
public PartitionReplicaIngestionContext(PubSubTopic versionTopic, PubSubTopicPartition pubSubTopicPartition, PartitionReplicaIngestionContext.VersionRole versionRole, PartitionReplicaIngestionContext.WorkloadType workloadType)
-
-
Method Detail
-
getVersionRole
public PartitionReplicaIngestionContext.VersionRole getVersionRole()
-
getPubSubTopicPartition
public PubSubTopicPartition getPubSubTopicPartition()
-
getVersionTopic
public PubSubTopic getVersionTopic()
-
getWorkloadType
public PartitionReplicaIngestionContext.WorkloadType getWorkloadType()
-
getWorkloadType
public static PartitionReplicaIngestionContext.WorkloadType getWorkloadType(PubSubTopic versionTopic, Store store)
-
getStoreVersionRole
public static PartitionReplicaIngestionContext.VersionRole getStoreVersionRole(PubSubTopic versionTopic, Store store)
-
-