public class ArtifactCacheBuckConfig extends Object implements ConfigView<BuckConfig>
ArtifactCache
.Modifier and Type | Class and Description |
---|---|
static class |
ArtifactCacheBuckConfig.Executor
Thread pools that are available for task execution.
|
Modifier and Type | Field and Description |
---|---|
static String |
MULTI_CHECK |
static String |
MULTI_FETCH |
Constructor and Description |
---|
ArtifactCacheBuckConfig(BuckConfig buckConfig) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<ArtifactCacheMode> |
getArtifactCacheModes() |
com.google.common.collect.ImmutableList<String> |
getArtifactCacheModesRaw() |
com.google.common.collect.ImmutableSet<String> |
getBlacklistedWifiSsids() |
ArtifactCacheEntries |
getCacheEntries() |
int |
getCasDeadline() |
Optional<String> |
getCasHost() |
int |
getCasPort() |
Optional<Path> |
getClientTlsCertificate()
Gets the path to a PEM encoded X509 certificate to use as the TLS client certificate for HTTP
cache requests from the content of the env var specified in http_client_tls_cert_env_var if set
or the field value
|
boolean |
getClientTlsCertRequired()
If true, fail if client TLS certificate or key paths are unspecified, don't exist, are not the
right format or have expired
|
boolean |
getClientTlsForSlb()
If true, use TLS client authentication certificate, private key and extra trusted certificates
also for CLIENT_SLB mode alive pings.
|
Optional<Path> |
getClientTlsKey()
Gets the path to a PEM encoded PCKS#8 key to use as the TLS client key for HTTP cache requests
from the content of the env var specified in http_client_tls_key_env_var if set or the field
value.
|
Optional<Path> |
getClientTlsTrustedCertificates()
Gets the path to a file containing PEM encoded X509 certificates to use as an additional list
of trusted certificates from the content of the env var specified in http_client_tls_ca_env_var
if set or the field value.
|
BuckConfig |
getDelegate() |
ArtifactCacheBuckConfig.Executor |
getDirCacheStoreExecutor() |
Boolean |
getEnableWriteToCas() |
static String |
getEnvVarFieldNameForField(String field) |
int |
getErrorMessageLimit() |
String |
getHostToReportToRemoteCacheServer() |
int |
getHttpFetchConcurrency() |
int |
getHttpMaxConcurrentWrites() |
int |
getHttpWriterShutdownTimeout() |
Optional<String> |
getHybridThriftEndpoint() |
LoadBalancingType |
getLoadBalancingType() |
int |
getMaxFetchRetries() |
int |
getMaxStoreAttempts() |
boolean |
getMultiCheckEnabled() |
int |
getMultiFetchLimit() |
MultiFetchType |
getMultiFetchType() |
String |
getRepository() |
String |
getScheduleType() |
Optional<DirCacheEntry> |
getServedLocalCache() |
SlbBuckConfig |
getSlbConfig() |
long |
getStoreRetryIntervalMillis() |
static Optional<String> |
getStringOrEnvironmentVariable(BuckConfig buckConfig,
String section,
String field) |
long |
getThreadPoolKeepAliveDurationMillis() |
long |
getThreadPoolSize() |
boolean |
getTwoLevelCachingEnabled() |
Optional<Long> |
getTwoLevelCachingMaximumSize() |
long |
getTwoLevelCachingMinimumSize() |
boolean |
hasAtLeastOneWriteableRemoteCache() |
static ArtifactCacheBuckConfig |
of(BuckConfig delegate) |
public static final String MULTI_FETCH
public static final String MULTI_CHECK
public ArtifactCacheBuckConfig(BuckConfig buckConfig)
public static ArtifactCacheBuckConfig of(BuckConfig delegate)
public MultiFetchType getMultiFetchType()
public boolean getMultiCheckEnabled()
public BuckConfig getDelegate()
getDelegate
in interface ConfigView<BuckConfig>
public int getHttpFetchConcurrency()
public int getMultiFetchLimit()
public String getRepository()
public String getScheduleType()
public SlbBuckConfig getSlbConfig()
public Boolean getEnableWriteToCas()
public int getCasPort()
public int getCasDeadline()
public LoadBalancingType getLoadBalancingType()
public int getHttpMaxConcurrentWrites()
public int getHttpWriterShutdownTimeout()
public int getMaxFetchRetries()
public int getMaxStoreAttempts()
public int getErrorMessageLimit()
public long getStoreRetryIntervalMillis()
public boolean hasAtLeastOneWriteableRemoteCache()
public String getHostToReportToRemoteCacheServer()
public com.google.common.collect.ImmutableList<String> getArtifactCacheModesRaw()
public com.google.common.collect.ImmutableSet<ArtifactCacheMode> getArtifactCacheModes()
public Optional<DirCacheEntry> getServedLocalCache()
public ArtifactCacheEntries getCacheEntries()
public long getThreadPoolSize()
public long getThreadPoolKeepAliveDurationMillis()
public boolean getTwoLevelCachingEnabled()
public long getTwoLevelCachingMinimumSize()
public boolean getClientTlsCertRequired()
public boolean getClientTlsForSlb()
public Optional<Path> getClientTlsCertificate()
Both the key and certificate must be set for client TLS certificates to be used
public Optional<Path> getClientTlsKey()
Both the key and certificate must be set for client TLS certificates to be used
public Optional<Path> getClientTlsTrustedCertificates()
Both the key and certificate must be set for client TLS certificates to be used
public ArtifactCacheBuckConfig.Executor getDirCacheStoreExecutor()
public com.google.common.collect.ImmutableSet<String> getBlacklistedWifiSsids()
public static Optional<String> getStringOrEnvironmentVariable(BuckConfig buckConfig, String section, String field)