Class TestProperties

java.lang.Object
com.yahoo.config.model.deploy.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 Details

    • TestProperties

      public TestProperties()
  • Method Details

    • 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
    • feedMasterTaskLimit

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

      public String sharedFieldWriterExecutor()
      Specified by:
      sharedFieldWriterExecutor 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
    • 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
    • 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
    • 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
    • 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
    • maxUnCommittedMemory

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

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

      public List<String> zoneDnsSuffixes()
      Specified by:
      zoneDnsSuffixes in interface com.yahoo.config.model.api.ModelContext.Properties
    • maxCompactBuffers

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

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

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

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

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

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

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

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

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

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

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

      public List<String> environmentVariables()
      Specified by:
      environmentVariables in interface com.yahoo.config.model.api.ModelContext.Properties
    • avoidRenamingSummaryFeatures

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

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

      public com.yahoo.config.provision.NodeResources.Architecture adminClusterArchitecture()
      Specified by:
      adminClusterArchitecture in interface com.yahoo.config.model.api.ModelContext.FeatureFlags
    • maxUnCommittedMemory

      public TestProperties maxUnCommittedMemory(int maxUnCommittedMemory)
    • containerDumpHeapOnShutdownTimeout

      public TestProperties containerDumpHeapOnShutdownTimeout(boolean value)
    • containerShutdownTimeout

      public TestProperties containerShutdownTimeout(double value)
    • setFeedConcurrency

      public TestProperties setFeedConcurrency(double feedConcurrency)
    • setAsyncMessageHandlingOnSchedule

      public TestProperties setAsyncMessageHandlingOnSchedule(boolean value)
    • setJvmGCOptions

      public TestProperties setJvmGCOptions(String gcOptions)
    • setFeedSequencerType

      public TestProperties setFeedSequencerType(String type)
    • setFeedTaskLimit

      public TestProperties setFeedTaskLimit(int value)
    • setFeedMasterTaskLimit

      public TestProperties setFeedMasterTaskLimit(int value)
    • setSharedFieldWriterExecutor

      public TestProperties setSharedFieldWriterExecutor(String value)
    • setResponseSequencerType

      public TestProperties setResponseSequencerType(String type)
    • setFirstTimeDeployment

      public TestProperties setFirstTimeDeployment(boolean firstTimeDeployment)
    • setResponseNumThreads

      public TestProperties setResponseNumThreads(int numThreads)
    • setMaxConcurrentMergesPerNode

      public TestProperties setMaxConcurrentMergesPerNode(int maxConcurrentMergesPerNode)
    • setMaxMergeQueueSize

      public TestProperties setMaxMergeQueueSize(int maxMergeQueueSize)
    • 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)
    • setConfigServerSpecs

      public TestProperties setConfigServerSpecs(List<TestProperties.Spec> configServerSpecs)
    • 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)
    • 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)
    • setOperatorCertificates

      public TestProperties setOperatorCertificates(List<X509Certificate> operatorCertificates)
    • setResourceLimitDisk

      public TestProperties setResourceLimitDisk(double value)
    • setResourceLimitMemory

      public TestProperties setResourceLimitMemory(double value)
    • setMinNodeRatioPerGroup

      public TestProperties setMinNodeRatioPerGroup(double value)
    • setUnorderedMergeChaining

      public TestProperties setUnorderedMergeChaining(boolean unordered)
    • setZoneDnsSuffixes

      public TestProperties setZoneDnsSuffixes(List<String> zoneDnsSuffixes)
    • maxCompactBuffers

      public TestProperties maxCompactBuffers(int maxCompactBuffers)
    • failDeploymentWithInvalidJvmOptions

      public TestProperties failDeploymentWithInvalidJvmOptions(boolean fail)
    • setPersistenceAsyncThrottling

      public TestProperties setPersistenceAsyncThrottling(String type)
    • setMergeThrottlingPolicy

      public TestProperties setMergeThrottlingPolicy(String policy)
    • setPersistenceThrottlingWsDecrementFactor

      public TestProperties setPersistenceThrottlingWsDecrementFactor(double factor)
    • setPersistenceThrottlingWsBackoff

      public TestProperties setPersistenceThrottlingWsBackoff(double backoff)
    • setPersistenceThrottlingWindowSize

      public TestProperties setPersistenceThrottlingWindowSize(int windowSize)
    • setPersistenceThrottlingWsResizeRate

      public TestProperties setPersistenceThrottlingWsResizeRate(double resizeRate)
    • setPersistenceThrottlingOfMergeFeedOps

      public TestProperties setPersistenceThrottlingOfMergeFeedOps(boolean throttleOps)
    • inhibitDefaultMergesWhenGlobalMergesPending

      public TestProperties inhibitDefaultMergesWhenGlobalMergesPending(boolean value)
    • setUseV8GeoPositions

      public TestProperties setUseV8GeoPositions(boolean value)
    • setEnvironmentVariables

      public TestProperties setEnvironmentVariables(List<String> value)
    • setAvoidRenamingSummaryFeatures

      public TestProperties setAvoidRenamingSummaryFeatures(boolean value)
    • setExperimentalSdParsing

      public TestProperties setExperimentalSdParsing(boolean value)
    • setAdminClusterNodeResourcesArchitecture

      public TestProperties setAdminClusterNodeResourcesArchitecture(com.yahoo.config.provision.NodeResources.Architecture architecture)