本文整理汇总了Java中io.airlift.configuration.ConfigDescription类的典型用法代码示例。如果您正苦于以下问题:Java ConfigDescription类的具体用法?Java ConfigDescription怎么用?Java ConfigDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConfigDescription类属于io.airlift.configuration包,在下文中一共展示了ConfigDescription类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setSuites
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@ConfigDescription("The suites of queries in the query database to run")
@Config("suites")
public VerifierConfig setSuites(String suites)
{
if (Strings.isNullOrEmpty(suites)) {
return this;
}
ImmutableList.Builder<String> builder = ImmutableList.builder();
for (String value : Splitter.on(',').trimResults().omitEmptyStrings().split(suites)) {
builder.add(value);
}
this.suites = builder.build();
return this;
}
示例2: setMaxRetries
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("thrift.client.max-retries")
@ConfigDescription("Minimum number of retry attempts")
public DriftClientConfig setMaxRetries(int maxRetries)
{
this.maxRetries = maxRetries;
return this;
}
示例3: setMinBackoffDelay
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("thrift.client.min-backoff-delay")
@ConfigDescription("Minimum delay between request retries")
public DriftClientConfig setMinBackoffDelay(Duration minBackoffDelay)
{
this.minBackoffDelay = minBackoffDelay;
return this;
}
示例4: setMaxBackoffDelay
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("thrift.client.max-backoff-delay")
@ConfigDescription("Maximum delay between request retries")
public DriftClientConfig setMaxBackoffDelay(Duration maxBackoffDelay)
{
this.maxBackoffDelay = maxBackoffDelay;
return this;
}
示例5: setBackoffScaleFactor
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("thrift.client.backoff-scale-factor")
@ConfigDescription("Scale factor for request retry delay")
public DriftClientConfig setBackoffScaleFactor(double backoffScaleFactor)
{
this.backoffScaleFactor = backoffScaleFactor;
return this;
}
示例6: setMaxRetryTime
import io.airlift.configuration.ConfigDescription; //导入依赖的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;
}
示例7: setStatsEnabled
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("thrift.client.stats.enabled")
@ConfigDescription("Enable per-method JMX stats")
public DriftClientConfig setStatsEnabled(boolean statsEnabled)
{
this.statsEnabled = statsEnabled;
return this;
}
示例8: setPackageType
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("packaging")
@ConfigDescription("what type of Presto installation will be managed")
public AgentConfig setPackageType(PackageType packageType)
{
this.packageType = packageType;
return this;
}
示例9: setDefaultConfigurationDirectory
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("defaults.config-dir")
@ConfigDescription("Directory containing default Presto configuration")
public AgentConfig setDefaultConfigurationDirectory(String path)
{
defaultConfigurationDirectory = Paths.get(path);
return this;
}
示例10: setDefaultCatalogDirectory
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("defaults.catalog-dir")
@ConfigDescription("Directory containing default Presto connector configuration")
public AgentConfig setDefaultCatalogDirectory(String path)
{
defaultCatalogDirectory = Paths.get(path);
return this;
}
示例11: setLongSubprocessTimeout
import io.airlift.configuration.ConfigDescription; //导入依赖的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;
}
示例12: setShortSubprocessTimeout
import io.airlift.configuration.ConfigDescription; //导入依赖的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;
}
示例13: setDefaultLogEntry
import io.airlift.configuration.ConfigDescription; //导入依赖的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;
}
示例14: setLogEntryPattern
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("log-entry.pattern")
@ConfigDescription("regular expression matching log file entries;" +
" must contain \"date\" and \"level\" groups")
public AgentConfig setLogEntryPattern(String logEntryPattern)
{
this.logEntryPattern = logEntryPattern;
return this;
}
示例15: setKuduMaster
import io.airlift.configuration.ConfigDescription; //导入依赖的package包/类
@Config("kudu.master")
@ConfigDescription("IP:PORT where kudu master connect")
public KuduConfig setKuduMaster(String kuduMaster)
{
this.kuduMaster = kuduMaster;
return this;
}