当前位置: 首页>>代码示例>>Java>>正文


Java Config类代码示例

本文整理汇总了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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:ApacheThriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:11,代码来源:DriftNettyClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:8,代码来源:DriftClientConfig.java

示例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;
}
 
开发者ID:airlift,项目名称:drift,代码行数:14,代码来源:SimpleAddressSelectorConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java

示例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;
}
 
开发者ID:prestodb,项目名称:presto-manager,代码行数:8,代码来源:AgentConfig.java


注:本文中的io.airlift.configuration.Config类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。