Class VeniceClusterConfig

  • Direct Known Subclasses:
    VeniceServerConfig

    public class VeniceClusterConfig
    extends java.lang.Object
    class that maintains config very specific to a Venice cluster
    • Method Detail

      • getClusterName

        public java.lang.String getClusterName()
      • getZookeeperAddress

        public java.lang.String getZookeeperAddress()
      • getKafkaBootstrapServers

        public java.lang.String getKafkaBootstrapServers()
      • getKafkaSecurityProtocol

        public PubSubSecurityProtocol getKafkaSecurityProtocol​(java.lang.String kafkaBootstrapUrl)
      • getSslConfig

        public java.util.Optional<SSLConfig> getSslConfig()
      • getRefreshIntervalForZkReconnectInMs

        public long getRefreshIntervalForZkReconnectInMs()
      • getRefreshAttemptsForZkReconnect

        public int getRefreshAttemptsForZkReconnect()
      • getKafkaReadCycleDelayMs

        public long getKafkaReadCycleDelayMs()
      • getKafkaEmptyPollSleepMs

        public long getKafkaEmptyPollSleepMs()
      • getKafkaFetchMinSizePerSecond

        public long getKafkaFetchMinSizePerSecond()
      • getKafkaFetchMaxSizePerSecond

        public long getKafkaFetchMaxSizePerSecond()
      • getKafkaFetchMaxTimeMS

        public long getKafkaFetchMaxTimeMS()
      • getKafkaFetchPartitionMaxSizePerSecond

        public long getKafkaFetchPartitionMaxSizePerSecond()
      • getKafkaFetchQuotaTimeWindow

        public long getKafkaFetchQuotaTimeWindow()
      • getKafkaFetchQuotaBytesPerSecond

        public long getKafkaFetchQuotaBytesPerSecond()
      • getKafkaFetchQuotaRecordPerSecond

        public long getKafkaFetchQuotaRecordPerSecond()
      • getKafkaFetchQuotaUnorderedBytesPerSecond

        public long getKafkaFetchQuotaUnorderedBytesPerSecond()
      • getKafkaFetchQuotaUnorderedRecordPerSecond

        public long getKafkaFetchQuotaUnorderedRecordPerSecond()
      • getRegionName

        public java.lang.String getRegionName()
      • getKafkaClusterIdToUrlMap

        public it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.String> getKafkaClusterIdToUrlMap()
      • getKafkaClusterUrlToIdMap

        public it.unimi.dsi.fastutil.objects.Object2IntMap<java.lang.String> getKafkaClusterUrlToIdMap()
      • getKafkaClusterIdToAliasMap

        public it.unimi.dsi.fastutil.ints.Int2ObjectMap<java.lang.String> getKafkaClusterIdToAliasMap()
      • getKafkaClusterAliasToIdMap

        public it.unimi.dsi.fastutil.objects.Object2IntMap<java.lang.String> getKafkaClusterAliasToIdMap()
      • getKafkaClusterUrlToAliasMap

        public java.util.Map<java.lang.String,​java.lang.String> getKafkaClusterUrlToAliasMap()
      • getKafkaClusterUrlResolver

        public java.util.function.Function<java.lang.String,​java.lang.String> getKafkaClusterUrlResolver()
        Used to convert from an alternative Kafka URL to the one used in this server instance. For example, can be used in case of a URL migration, or a security protocol migration (e.g. from PLAINTEXT to SSL).
      • getRegionNames

        public java.util.Set<java.lang.String> getRegionNames()
      • getKafkaClusterMap

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getKafkaClusterMap()
      • getEquivalentKafkaClusterIdForSepTopic

        public int getEquivalentKafkaClusterIdForSepTopic​(int clusterId)
        For the separate incremental push topic feature, we need to resolve the cluster id to the original one for monitoring purposes as the incremental push topic essentially uses the same pubsub clusters as the regular push topic, though it appears to have a different cluster id
        Parameters:
        clusterId -
        Returns: