本文整理汇总了Java中io.airlift.configuration.Config类的典型用法代码示例。如果您正苦于以下问题:Java Config类的具体用法?Java Config怎么用?Java Config使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Config类属于io.airlift.configuration包,在下文中一共展示了Config类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setKeyPassword
import io.airlift.configuration.Config; //导入依赖的package包/类
@ConfigSecuritySensitive
@Config("thrift.client.ssl.key-password")
public ApacheThriftClientConfig setKeyPassword(String keyPassword)
{
this.keyPassword = keyPassword;
return this;
}
示例2: setCiphers
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.ssl.ciphers")
public DriftNettyClientConfig setCiphers(String ciphers)
{
this.ciphers = Splitter
.on(',')
.trimResults()
.omitEmptyStrings()
.splitToList(requireNonNull(ciphers, "ciphers is null"));
return this;
}
示例3: setMaxRetries
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.max-retries")
@ConfigDescription("Minimum number of retry attempts")
public DriftClientConfig setMaxRetries(int maxRetries)
{
this.maxRetries = maxRetries;
return this;
}
示例4: setMinBackoffDelay
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.min-backoff-delay")
@ConfigDescription("Minimum delay between request retries")
public DriftClientConfig setMinBackoffDelay(Duration minBackoffDelay)
{
this.minBackoffDelay = minBackoffDelay;
return this;
}
示例5: setMaxBackoffDelay
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.max-backoff-delay")
@ConfigDescription("Maximum delay between request retries")
public DriftClientConfig setMaxBackoffDelay(Duration maxBackoffDelay)
{
this.maxBackoffDelay = maxBackoffDelay;
return this;
}
示例6: setBackoffScaleFactor
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.backoff-scale-factor")
@ConfigDescription("Scale factor for request retry delay")
public DriftClientConfig setBackoffScaleFactor(double backoffScaleFactor)
{
this.backoffScaleFactor = backoffScaleFactor;
return this;
}
示例7: setMaxRetryTime
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.max-retry-time")
@ConfigDescription("Total time limit for a request to be retried")
public DriftClientConfig setMaxRetryTime(Duration maxRetryTime)
{
this.maxRetryTime = maxRetryTime;
return this;
}
示例8: setStatsEnabled
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.stats.enabled")
@ConfigDescription("Enable per-method JMX stats")
public DriftClientConfig setStatsEnabled(boolean statsEnabled)
{
this.statsEnabled = statsEnabled;
return this;
}
示例9: setAddresses
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("thrift.client.addresses")
public SimpleAddressSelectorConfig setAddresses(String addresses)
{
if (addresses == null) {
this.addresses = null;
}
else {
this.addresses = ImmutableList.copyOf(SPLITTER.splitToList(addresses).stream()
.map(HostAndPort::fromString)
.collect(toList()));
}
return this;
}
示例10: setPackageType
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("packaging")
@ConfigDescription("what type of Presto installation will be managed")
public AgentConfig setPackageType(PackageType packageType)
{
this.packageType = packageType;
return this;
}
示例11: setDefaultConfigurationDirectory
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("defaults.config-dir")
@ConfigDescription("Directory containing default Presto configuration")
public AgentConfig setDefaultConfigurationDirectory(String path)
{
defaultConfigurationDirectory = Paths.get(path);
return this;
}
示例12: setDefaultCatalogDirectory
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("defaults.catalog-dir")
@ConfigDescription("Directory containing default Presto connector configuration")
public AgentConfig setDefaultCatalogDirectory(String path)
{
defaultCatalogDirectory = Paths.get(path);
return this;
}
示例13: setLongSubprocessTimeout
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("subprocess-timeout-seconds.long")
@ConfigDescription("Timeout for subprocesses expected to run quickly, such as installing Presto")
public AgentConfig setLongSubprocessTimeout(int subprocessTimeout)
{
this.longSubprocessTimeout = subprocessTimeout;
return this;
}
示例14: setShortSubprocessTimeout
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("subprocess-timeout-seconds.short")
@ConfigDescription("Timeout for subprocesses expected to run quickly, such as checking if Presto is running")
public AgentConfig setShortSubprocessTimeout(int subprocessTimeout)
{
this.shortSubprocessTimeout = subprocessTimeout;
return this;
}
示例15: setDefaultLogEntry
import io.airlift.configuration.Config; //导入依赖的package包/类
@Config("log-entry.default")
@ConfigDescription("default log entry used when the first line of a log file is misformatted")
public AgentConfig setDefaultLogEntry(String defaultLogEntry)
{
this.defaultLogEntry = defaultLogEntry;
return this;
}