Class DefaultIndyConfiguration

    • Field Detail

      • DEFAULT_PASSTHROUGH_TIMEOUT_SECONDS

        public static final int DEFAULT_PASSTHROUGH_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • DEFAULT_NOT_FOUND_CACHE_TIMEOUT_SECONDS

        public static final int DEFAULT_NOT_FOUND_CACHE_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • DEFAULT_REQUEST_TIMEOUT_SECONDS

        public static final int DEFAULT_REQUEST_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • DEFAULT_STORE_DISABLE_TIMEOUT_SECONDS

        public static final int DEFAULT_STORE_DISABLE_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • DEFAULT_NFC_EXPIRATION_SWEEP_MINUTES

        public static final int DEFAULT_NFC_EXPIRATION_SWEEP_MINUTES
        See Also:
        Constant Field Values
      • DEFAULT_NFC_MAX_RESULT_SET_SIZE

        public static final int DEFAULT_NFC_MAX_RESULT_SET_SIZE
        See Also:
        Constant Field Values
      • DEFAULT_ALLOW_REMOTE_LIST_DOWNLOAD

        public static final Boolean DEFAULT_ALLOW_REMOTE_LIST_DOWNLOAD
      • DEFAULT_REMOTE_METADATA_TIMEOUT_SECONDS

        public static final int DEFAULT_REMOTE_METADATA_TIMEOUT_SECONDS
        See Also:
        Constant Field Values
      • DEFAULT_FORKJOINPOOL_COMMON_PARALLELISM

        public static final int DEFAULT_FORKJOINPOOL_COMMON_PARALLELISM
        See Also:
        Constant Field Values
      • DEFAULT_STANDALONE

        public static final Boolean DEFAULT_STANDALONE
      • DEFAULT_TIMEOUT_PROCESSING

        public static final Boolean DEFAULT_TIMEOUT_PROCESSING
      • DEFAULT_STORE_MANAGER_STANDALONE

        public static final Boolean DEFAULT_STORE_MANAGER_STANDALONE
      • DEFAULT_CASSANDRA_KEYSPACE_REPLICAS

        public static final int DEFAULT_CASSANDRA_KEYSPACE_REPLICAS
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultIndyConfiguration

        public DefaultIndyConfiguration()
    • Method Detail

      • setNodeId

        public void setNodeId​(String nodeId)
      • getPassthroughTimeoutSeconds

        public int getPassthroughTimeoutSeconds()
        Description copied from interface: IndyConfiguration
        Number of seconds before the content in a repository marked as "pass-through" will timeout. Pass-through remote repos are designed to hold content for a minimal amount of time. They would be a simple pass-through, non-caching proxy, but in reality artifacts are usually referenced more than once from any given build. So, setting a very low pass-through timeout for content in these repositories helps to cut down on traffic to the upstream repository.
        Specified by:
        getPassthroughTimeoutSeconds in interface IndyConfiguration
      • setPassthroughTimeoutSeconds

        public void setPassthroughTimeoutSeconds​(int seconds)
      • setNfcProvider

        public void setNfcProvider​(String nfcProvider)
      • setNotFoundCacheTimeoutSeconds

        public void setNotFoundCacheTimeoutSeconds​(int seconds)
      • setMDCHeaders

        public void setMDCHeaders​(String headers)
      • getNotFoundCacheTimeoutSeconds

        public int getNotFoundCacheTimeoutSeconds()
        Description copied from interface: IndyConfiguration
        Number of seconds before a negative cache (or, not-found cache) URL record will timeout. These are used to prevent constant re-request for URLs that have been known to fail for one reason or another (ranging from 404's to 500's, to just about anything else that's not HTTP 200, 301, or 302). This value can be tuned based on use case, but for most people it should be relatively high.
        Also, the NFC (Not-Found Cache) can be maintained manually via the UI.
        Specified by:
        getNotFoundCacheTimeoutSeconds in interface IndyConfiguration
      • setRequestTimeoutSeconds

        public void setRequestTimeoutSeconds​(Integer requestTimeoutSeconds)
      • setDefaultNfcExpirationSweepMinutes

        public void setDefaultNfcExpirationSweepMinutes​(int minutes)
      • setDefaultNfcMaxResultSetSize

        public void setDefaultNfcMaxResultSetSize​(int size)
      • setAllowRemoteListDownload

        public void setAllowRemoteListDownload​(Boolean allowRemoteListDownload)
      • getDisposableStorePattern

        public String getDisposableStorePattern()
        Description copied from interface: IndyConfiguration
        Disposable stores can be deleted alone with its the content. It serves as a safe guard because mis-deleted repo definition can be restored but mis-deleted content can not.
        Specified by:
        getDisposableStorePattern in interface IndyConfiguration
      • setDisposableStorePattern

        public void setDisposableStorePattern​(String disposableStorePattern)
      • setStoreDisableTimeoutSeconds

        public void setStoreDisableTimeoutSeconds​(Integer storeDisableTimeoutSeconds)
      • setCacheKeyspace

        public void setCacheKeyspace​(String cacheKeyspace)
      • setClusterEnabled

        public void setClusterEnabled​(Boolean clusterEnabled)
      • setForkJoinPoolCommonParallelism

        public void setForkJoinPoolCommonParallelism​(Integer forkJoinPoolCommonParallelism)
      • setRemoteMetadataTimeoutSeconds

        public void setRemoteMetadataTimeoutSeconds​(Integer remoteMetadataTimeoutSeconds)
      • setAffectedGroupsExcludeFilter

        public void setAffectedGroupsExcludeFilter​(String affectedGroupsExcludeFilter)
      • getFileSystemContainingBatchSize

        public int getFileSystemContainingBatchSize()
        Description copied from interface: IndyConfiguration
        FileSystemContaining is an operation by which we get what path in which repository. We use batching to limit the query candidates size to avoid huge 'IN' query.
        Specified by:
        getFileSystemContainingBatchSize in interface IndyConfiguration
        Returns:
      • setFileSystemContainingBatchSize

        public void setFileSystemContainingBatchSize​(int fileSystemContainingBatchSize)
      • setRepositoryFilterEnabled

        public void setRepositoryFilterEnabled​(boolean repositoryFilterEnabled)
      • getGACacheStorePattern

        public void getGACacheStorePattern​(String gaCacheStorePattern)
      • setStandalone

        public void setStandalone​(Boolean standalone)
      • setStoreManagerStandalone

        public void setStoreManagerStandalone​(Boolean storeManagerStandalone)
      • setKeyspaceReplicas

        public void setKeyspaceReplicas​(int keyspaceReplicas)
      • setTimeoutProcessing

        public void setTimeoutProcessing​(Boolean timeoutProcessing)
      • getDefaultConfigFileName

        public String getDefaultConfigFileName()
        Description copied from interface: IndyConfigInfo
        The name of the file to be written in case no configuration is provided, to allow modification of defaults in future executions.
        Specified by:
        getDefaultConfigFileName in interface IndyConfigInfo
        Returns:
        a filename, of the form *.conf (unless it's 'main.conf', in which case it'll be appended to the main config file), which will be written to the etc/indy/conf.d directory.
      • getDefaultConfig

        public InputStream getDefaultConfig()
        Description copied from interface: IndyConfigInfo
        The actual content which should be added to the default configuration file in case no configuration is provided, to allow modification of defaults in future executions.
        Specified by:
        getDefaultConfig in interface IndyConfigInfo
        Returns:
        The content, usually as a result of loading Thread.currentThread().getContextClassLoader().getResourceAsStream("foo")