Class TestProperties

  • All Implemented Interfaces:
    com.yahoo.config.model.api.ModelContext.FeatureFlags, com.yahoo.config.model.api.ModelContext.Properties

    public class TestProperties
    extends Object
    implements com.yahoo.config.model.api.ModelContext.Properties, com.yahoo.config.model.api.ModelContext.FeatureFlags
    A test-only Properties class

    Unfortunately this has to be placed in non-test source tree since lots of code already have test code (fix later)

    Author:
    hakonhall
    • Constructor Detail

      • TestProperties

        public TestProperties()
    • Method Detail

      • featureFlags

        public com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags()
        Specified by:
        featureFlags in interface com.yahoo.config.model.api.ModelContext.Properties
      • multitenant

        public boolean multitenant()
        Specified by:
        multitenant in interface com.yahoo.config.model.api.ModelContext.Properties
      • applicationId

        public com.yahoo.config.provision.ApplicationId applicationId()
        Specified by:
        applicationId in interface com.yahoo.config.model.api.ModelContext.Properties
      • configServerSpecs

        public List<com.yahoo.config.model.api.ConfigServerSpec> configServerSpecs()
        Specified by:
        configServerSpecs in interface com.yahoo.config.model.api.ModelContext.Properties
      • loadBalancerName

        public com.yahoo.config.provision.HostName loadBalancerName()
        Specified by:
        loadBalancerName in interface com.yahoo.config.model.api.ModelContext.Properties
      • ztsUrl

        public URI ztsUrl()
        Specified by:
        ztsUrl in interface com.yahoo.config.model.api.ModelContext.Properties
      • athenzDnsSuffix

        public String athenzDnsSuffix()
        Specified by:
        athenzDnsSuffix in interface com.yahoo.config.model.api.ModelContext.Properties
      • hostedVespa

        public boolean hostedVespa()
        Specified by:
        hostedVespa in interface com.yahoo.config.model.api.ModelContext.Properties
      • zone

        public com.yahoo.config.provision.Zone zone()
        Specified by:
        zone in interface com.yahoo.config.model.api.ModelContext.Properties
      • endpoints

        public Set<com.yahoo.config.model.api.ContainerEndpoint> endpoints()
        Specified by:
        endpoints in interface com.yahoo.config.model.api.ModelContext.Properties
      • jvmGCOptions

        public String jvmGCOptions​(Optional<com.yahoo.config.provision.ClusterSpec.Type> clusterType)
        Specified by:
        jvmGCOptions in interface com.yahoo.config.model.api.ModelContext.Properties
      • feedSequencerType

        public String feedSequencerType()
        Specified by:
        feedSequencerType in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • feedTaskLimit

        public int feedTaskLimit()
        Specified by:
        feedTaskLimit in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • isBootstrap

        public boolean isBootstrap()
        Specified by:
        isBootstrap in interface com.yahoo.config.model.api.ModelContext.Properties
      • isFirstTimeDeployment

        public boolean isFirstTimeDeployment()
        Specified by:
        isFirstTimeDeployment in interface com.yahoo.config.model.api.ModelContext.Properties
      • useDedicatedNodeForLogserver

        public boolean useDedicatedNodeForLogserver()
        Specified by:
        useDedicatedNodeForLogserver in interface com.yahoo.config.model.api.ModelContext.Properties
      • endpointCertificateSecrets

        public Optional<com.yahoo.config.model.api.EndpointCertificateSecrets> endpointCertificateSecrets()
        Specified by:
        endpointCertificateSecrets in interface com.yahoo.config.model.api.ModelContext.Properties
      • defaultTermwiseLimit

        public double defaultTermwiseLimit()
        Specified by:
        defaultTermwiseLimit in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • useThreePhaseUpdates

        public boolean useThreePhaseUpdates()
        Specified by:
        useThreePhaseUpdates in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • athenzDomain

        public Optional<com.yahoo.config.provision.AthenzDomain> athenzDomain()
        Specified by:
        athenzDomain in interface com.yahoo.config.model.api.ModelContext.Properties
      • responseSequencerType

        public String responseSequencerType()
        Specified by:
        responseSequencerType in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • defaultNumResponseThreads

        public int defaultNumResponseThreads()
        Specified by:
        defaultNumResponseThreads in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • skipCommunicationManagerThread

        public boolean skipCommunicationManagerThread()
        Specified by:
        skipCommunicationManagerThread in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • skipMbusRequestThread

        public boolean skipMbusRequestThread()
        Specified by:
        skipMbusRequestThread in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • skipMbusReplyThread

        public boolean skipMbusReplyThread()
        Specified by:
        skipMbusReplyThread in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • quota

        public com.yahoo.config.model.api.Quota quota()
        Specified by:
        quota in interface com.yahoo.config.model.api.ModelContext.Properties
      • useAsyncMessageHandlingOnSchedule

        public boolean useAsyncMessageHandlingOnSchedule()
        Specified by:
        useAsyncMessageHandlingOnSchedule in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • feedConcurrency

        public double feedConcurrency()
        Specified by:
        feedConcurrency in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • enableFeedBlockInDistributor

        public boolean enableFeedBlockInDistributor()
        Specified by:
        enableFeedBlockInDistributor in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • maxActivationInhibitedOutOfSyncGroups

        public int maxActivationInhibitedOutOfSyncGroups()
        Specified by:
        maxActivationInhibitedOutOfSyncGroups in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • tenantSecretStores

        public List<com.yahoo.config.model.api.TenantSecretStore> tenantSecretStores()
        Specified by:
        tenantSecretStores in interface com.yahoo.config.model.api.ModelContext.Properties
      • jvmOmitStackTraceInFastThrowOption

        public String jvmOmitStackTraceInFastThrowOption​(com.yahoo.config.provision.ClusterSpec.Type type)
        Specified by:
        jvmOmitStackTraceInFastThrowOption in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • allowDisableMtls

        public boolean allowDisableMtls()
        Specified by:
        allowDisableMtls in interface com.yahoo.config.model.api.ModelContext.Properties
      • operatorCertificates

        public List<X509Certificate> operatorCertificates()
        Specified by:
        operatorCertificates in interface com.yahoo.config.model.api.ModelContext.Properties
      • largeRankExpressionLimit

        public int largeRankExpressionLimit()
        Specified by:
        largeRankExpressionLimit in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • maxConcurrentMergesPerNode

        public int maxConcurrentMergesPerNode()
        Specified by:
        maxConcurrentMergesPerNode in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • maxMergeQueueSize

        public int maxMergeQueueSize()
        Specified by:
        maxMergeQueueSize in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • ignoreMergeQueueLimit

        public boolean ignoreMergeQueueLimit()
        Specified by:
        ignoreMergeQueueLimit in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • resourceLimitDisk

        public double resourceLimitDisk()
        Specified by:
        resourceLimitDisk in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • resourceLimitMemory

        public double resourceLimitMemory()
        Specified by:
        resourceLimitMemory in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • minNodeRatioPerGroup

        public double minNodeRatioPerGroup()
        Specified by:
        minNodeRatioPerGroup in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • metricsproxyNumThreads

        public int metricsproxyNumThreads()
        Specified by:
        metricsproxyNumThreads in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • containerShutdownTimeout

        public double containerShutdownTimeout()
        Specified by:
        containerShutdownTimeout in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • containerDumpHeapOnShutdownTimeout

        public boolean containerDumpHeapOnShutdownTimeout()
        Specified by:
        containerDumpHeapOnShutdownTimeout in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • distributorMergeBusyWait

        public int distributorMergeBusyWait()
        Specified by:
        distributorMergeBusyWait in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • diskBloatFactor

        public double diskBloatFactor()
        Specified by:
        diskBloatFactor in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • docstoreCompressionLevel

        public int docstoreCompressionLevel()
        Specified by:
        docstoreCompressionLevel in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • distributorEnhancedMaintenanceScheduling

        public boolean distributorEnhancedMaintenanceScheduling()
        Specified by:
        distributorEnhancedMaintenanceScheduling in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • maxUnCommittedMemory

        public int maxUnCommittedMemory()
        Specified by:
        maxUnCommittedMemory in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • asyncApplyBucketDiff

        public boolean asyncApplyBucketDiff()
        Specified by:
        asyncApplyBucketDiff in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
      • maxUnCommittedMemory

        public TestProperties maxUnCommittedMemory​(int maxUnCommittedMemory)
      • docstoreCompressionLevel

        public TestProperties docstoreCompressionLevel​(int docstoreCompressionLevel)
      • diskBloatFactor

        public TestProperties diskBloatFactor​(double diskBloatFactor)
      • containerDumpHeapOnShutdownTimeout

        public TestProperties containerDumpHeapOnShutdownTimeout​(boolean value)
      • containerShutdownTimeout

        public TestProperties containerShutdownTimeout​(double value)
      • largeRankExpressionLimit

        public TestProperties largeRankExpressionLimit​(int value)
      • setFeedConcurrency

        public TestProperties setFeedConcurrency​(double feedConcurrency)
      • setAsyncMessageHandlingOnSchedule

        public TestProperties setAsyncMessageHandlingOnSchedule​(boolean value)
      • setFeedTaskLimit

        public TestProperties setFeedTaskLimit​(int value)
      • setFirstTimeDeployment

        public TestProperties setFirstTimeDeployment​(boolean firstTimeDeployment)
      • setResponseNumThreads

        public TestProperties setResponseNumThreads​(int numThreads)
      • setMaxConcurrentMergesPerNode

        public TestProperties setMaxConcurrentMergesPerNode​(int maxConcurrentMergesPerNode)
      • setMaxMergeQueueSize

        public TestProperties setMaxMergeQueueSize​(int maxMergeQueueSize)
      • setIgnoreMergeQueueLimit

        public TestProperties setIgnoreMergeQueueLimit​(boolean ignoreMergeQueueLimit)
      • setDefaultTermwiseLimit

        public TestProperties setDefaultTermwiseLimit​(double limit)
      • setUseThreePhaseUpdates

        public TestProperties setUseThreePhaseUpdates​(boolean useThreePhaseUpdates)
      • setApplicationId

        public TestProperties setApplicationId​(com.yahoo.config.provision.ApplicationId applicationId)
      • setHostedVespa

        public TestProperties setHostedVespa​(boolean hostedVespa)
      • setMultitenant

        public TestProperties setMultitenant​(boolean multitenant)
      • setUseDedicatedNodeForLogserver

        public TestProperties setUseDedicatedNodeForLogserver​(boolean useDedicatedNodeForLogserver)
      • setEndpointCertificateSecrets

        public TestProperties setEndpointCertificateSecrets​(Optional<com.yahoo.config.model.api.EndpointCertificateSecrets> endpointCertificateSecrets)
      • setZone

        public TestProperties setZone​(com.yahoo.config.provision.Zone zone)
      • setAthenzDomain

        public TestProperties setAthenzDomain​(com.yahoo.config.provision.AthenzDomain domain)
      • setQuota

        public TestProperties setQuota​(com.yahoo.config.model.api.Quota quota)
      • enableFeedBlockInDistributor

        public TestProperties enableFeedBlockInDistributor​(boolean enabled)
      • maxActivationInhibitedOutOfSyncGroups

        public TestProperties maxActivationInhibitedOutOfSyncGroups​(int nGroups)
      • setTenantSecretStores

        public TestProperties setTenantSecretStores​(List<com.yahoo.config.model.api.TenantSecretStore> secretStores)
      • setJvmOmitStackTraceInFastThrowOption

        public TestProperties setJvmOmitStackTraceInFastThrowOption​(String value)
      • allowDisableMtls

        public TestProperties allowDisableMtls​(boolean value)
      • setResourceLimitDisk

        public TestProperties setResourceLimitDisk​(double value)
      • setResourceLimitMemory

        public TestProperties setResourceLimitMemory​(double value)
      • setMinNodeRatioPerGroup

        public TestProperties setMinNodeRatioPerGroup​(double value)
      • setDistributorMergeBusyWait

        public TestProperties setDistributorMergeBusyWait​(int value)
      • distributorEnhancedMaintenanceScheduling

        public TestProperties distributorEnhancedMaintenanceScheduling​(boolean enhancedScheduling)
      • setAsyncApplyBucketDiff

        public TestProperties setAsyncApplyBucketDiff​(boolean value)