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

      public double feedNiceness()
      Specified by:
      feedNiceness 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
    • 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
    • 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
    • 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
    • adminClusterArchitecture

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Optional<com.yahoo.config.provision.CloudAccount> cloudAccount()
      Specified by:
      cloudAccount in interface com.yahoo.config.model.api.ModelContext.Properties
    • allowUserFilters

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

      public TestProperties sharedStringRepoNoReclaim(boolean sharedStringRepoNoReclaim)
    • loadCodeAsHugePages

      public TestProperties loadCodeAsHugePages(boolean loadCodeAsHugePages)
    • maxUnCommittedMemory

      public TestProperties maxUnCommittedMemory(int maxUnCommittedMemory)
    • containerDumpHeapOnShutdownTimeout

      public TestProperties containerDumpHeapOnShutdownTimeout(boolean value)
    • containerShutdownTimeout

      public TestProperties containerShutdownTimeout(double value)
    • setFeedConcurrency

      public TestProperties setFeedConcurrency(double feedConcurrency)
    • setFeedNiceness

      public TestProperties setFeedNiceness(double feedNiceness)
    • setHeapSizePercentage

      public TestProperties setHeapSizePercentage(int percentage)
    • setAsyncMessageHandlingOnSchedule

      public TestProperties setAsyncMessageHandlingOnSchedule(boolean value)
    • setJvmGCOptions

      public TestProperties setJvmGCOptions(String gcOptions)
    • setQueryDispatchPolicy

      public TestProperties setQueryDispatchPolicy(String policy)
    • setFeedSequencerType

      public TestProperties setFeedSequencerType(String type)
    • setResponseSequencerType

      public TestProperties setResponseSequencerType(String type)
    • setFirstTimeDeployment

      public TestProperties setFirstTimeDeployment(boolean firstTimeDeployment)
    • setResponseNumThreads

      public TestProperties setResponseNumThreads(int numThreads)
    • setDefaultTermwiseLimit

      public TestProperties setDefaultTermwiseLimit(double limit)
    • 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)
    • setZoneDnsSuffixes

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

      public TestProperties maxCompactBuffers(int maxCompactBuffers)
    • setUseV8GeoPositions

      public TestProperties setUseV8GeoPositions(boolean value)
    • setEnvironmentVariables

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

      public TestProperties setMbusNetworkThreads(int value)
    • setMbusJavaRpcNumTargets

      public TestProperties setMbusJavaRpcNumTargets(int value)
    • setMbusJavaEventsBeforeWakeup

      public TestProperties setMbusJavaEventsBeforeWakeup(int value)
    • setMbusCppEventsBeforeWakeup

      public TestProperties setMbusCppEventsBeforeWakeup(int value)
    • setMbusCppRpcNumTargets

      public TestProperties setMbusCppRpcNumTargets(int value)
    • setRpcNumTargets

      public TestProperties setRpcNumTargets(int value)
    • setRpcEventsBeforeWakeup

      public TestProperties setRpcEventsBeforeWakeup(int value)
    • setAdminClusterNodeResourcesArchitecture

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

      public TestProperties setUseRestrictedDataPlaneBindings(boolean useRestrictedDataPlaneBindings)
    • setCloudAccount

      public TestProperties setCloudAccount(com.yahoo.config.provision.CloudAccount cloudAccount)
    • setAllowUserFilters

      public TestProperties setAllowUserFilters(boolean b)