Class PartitionReplicaIngestionContext
- java.lang.Object
-
- com.linkedin.davinci.kafka.consumer.PartitionReplicaIngestionContext
-
public class PartitionReplicaIngestionContext extends java.lang.ObjectThis class is for wrapping the information about the role of the partition replica on that host toAggKafkaConsumerServiceto 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 byStoreIngestionTaskto 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 classPartitionReplicaIngestionContext.VersionRolestatic classPartitionReplicaIngestionContext.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 PubSubTopicPartitiongetPubSubTopicPartition()static PartitionReplicaIngestionContext.VersionRolegetStoreVersionRole(PubSubTopic versionTopic, Store store)PartitionReplicaIngestionContext.VersionRolegetVersionRole()PubSubTopicgetVersionTopic()PartitionReplicaIngestionContext.WorkloadTypegetWorkloadType()static PartitionReplicaIngestionContext.WorkloadTypegetWorkloadType(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)
-
-