本文整理汇总了Java中jetbrains.buildServer.serverSide.TeamCityProperties.getInteger方法的典型用法代码示例。如果您正苦于以下问题:Java TeamCityProperties.getInteger方法的具体用法?Java TeamCityProperties.getInteger怎么用?Java TeamCityProperties.getInteger使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jetbrains.buildServer.serverSide.TeamCityProperties
的用法示例。
在下文中一共展示了TeamCityProperties.getInteger方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInstanceStartedTime
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@NotNull
@Override
public Date getInstanceStartedTime(@NotNull String instanceId, @NotNull Callable<Date> resolver) throws Exception {
long now = System.currentTimeMillis();
synchronized (myInstanceStartedTimeCache) {
CacheEntry<Date> cacheEntry = myInstanceStartedTimeCache.get(instanceId);
if (cacheEntry == null || (now - cacheEntry.getTimestamp()) > TeamCityProperties.getInteger(CACHE_EXPIRATION_TIMEOUT_PROPERTY, 10 * 1000)) {
myInstanceStartedTimeCache.put(instanceId, new CacheEntry<>(now, resolver.call()));
}
}
return myInstanceStartedTimeCache.get(instanceId).getData();
}
示例2: getInstanceStatus
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@NotNull
@Override
public InstanceStatus getInstanceStatus(@NotNull String instanceId, @NotNull Callable<InstanceStatus> resolver) throws Exception {
long now = System.currentTimeMillis();
synchronized (myInstanceStatusCache) {
CacheEntry<InstanceStatus> cacheEntry = myInstanceStatusCache.get(instanceId);
if (cacheEntry == null || (now - cacheEntry.getTimestamp()) > TeamCityProperties.getInteger(CACHE_EXPIRATION_TIMEOUT_PROPERTY, 10 * 1000)) {
myInstanceStatusCache.put(instanceId, new CacheEntry<>(now, resolver.call()));
}
}
return myInstanceStatusCache.get(instanceId).getData();
}
示例3: AgentTorrentsSeeder
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public AgentTorrentsSeeder(@NotNull final BuildAgentConfiguration agentConfiguration,
@NotNull final TorrentConfiguration torrentConfiguration) {
myExecutorService = Executors.newScheduledThreadPool(1);
myTorrentsSeeder = new TorrentsSeeder(agentConfiguration.getCacheDirectory(Constants.TORRENTS_DIRNAME), TeamCityProperties.getInteger("teamcity.torrents.agent.maxSeededTorrents", 5000), new ParentDirConverter() {
@NotNull
@Override
public File getParentDir() {
return agentConfiguration.getSystemDirectory();
}
}, myExecutorService, torrentConfiguration);
}
示例4: getMaxNumberOfSeededTorrents
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getMaxNumberOfSeededTorrents() {
String oldPropertyName = "torrent.max.seeded.number";
if (!"".equals(TeamCityProperties.getProperty(oldPropertyName))) {
return TeamCityProperties.getInteger(oldPropertyName, DEFAULT_MAX_NUMBER_OF_SEEDED_TORRENTS);
}
return TeamCityProperties.getInteger(MAX_NUMBER_OF_SEEDED_TORRENTS, DEFAULT_MAX_NUMBER_OF_SEEDED_TORRENTS);
}
示例5: getFileSizeThresholdBytes
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public long getFileSizeThresholdBytes() {
boolean newValueNotExist = "".equals(TeamCityProperties.getProperty(FILE_SIZE_THRESHOLD));
if (newValueNotExist) {
String oldPropertyName = "torrent.file.size.threshold.mb";
return TeamCityProperties.getInteger(oldPropertyName, 10);
}
return getFileSizeThreshold();
}
示例6: getUrlLifetimeSec
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getUrlLifetimeSec() {
return TeamCityProperties.getInteger(S3Constants.S3_URL_LIFETIME_SEC, S3Constants.DEFAULT_S3_URL_LIFETIME_SEC);
}
开发者ID:JetBrains,项目名称:teamcity-s3-artifact-storage-plugin,代码行数:5,代码来源:S3PreSignedUrlProviderImpl.java
示例7: getConnectionTimeoutInMilliseconds
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public Integer getConnectionTimeoutInMilliseconds() {
return TeamCityProperties.getInteger(CONNECTION_TIMEOUT_PROP, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS);
}
开发者ID:matt-richardson,项目名称:teamcity-octopus-build-trigger-plugin,代码行数:4,代码来源:BuildTriggerProperties.java
示例8: getPollInterval
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public int getPollInterval() {
return TeamCityProperties.getInteger(POLL_INTERVAL_PROP, DEFAULT_POLL_INTERVAL_IN_SECONDS);
}
开发者ID:matt-richardson,项目名称:teamcity-octopus-build-trigger-plugin,代码行数:4,代码来源:BuildTriggerProperties.java
示例9: getWorkerPoolSize
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getWorkerPoolSize() {
return TeamCityProperties.getInteger(WORKER_POOL_SIZE, DEFAULT_WORKER_POOL_SIZE);
}
示例10: getSocketTimeout
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getSocketTimeout() {
int defaultTimeout = (int) TimeUnit.MILLISECONDS.toSeconds(Constants.DEFAULT_SOCKET_CONNECTION_TIMEOUT_MILLIS);
return TeamCityProperties.getInteger(SOCKET_CONNECTION_TIMEOUT, defaultTimeout);
}
示例11: getCleanupTimeout
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getCleanupTimeout() {
int defaultTimeout = (int) TimeUnit.MILLISECONDS.toSeconds(Constants.DEFAULT_CLEANUP_RUN_TIMEOUT_MILLIS);
return TeamCityProperties.getInteger(CLEANUP_TIMEOUT, defaultTimeout);
}
示例12: getMaxConnectionsCount
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getMaxConnectionsCount() {
return TeamCityProperties.getInteger(MAX_INCOMING_CONNECTIONS, DEFAULT_MAX_CONNECTIONS);
}
示例13: getAnnounceIntervalSec
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public int getAnnounceIntervalSec() {
return TeamCityProperties.getInteger(ANNOUNCE_INTERVAL, DEFAULT_ANNOUNCE_INTERVAL);
}
示例14: getTrackerTorrentExpireTimeoutSec
import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public int getTrackerTorrentExpireTimeoutSec() {
return TeamCityProperties.getInteger(TRACKER_TORRENT_EXPIRE_TIMEOUT, DEFAULT_TRACKER_TORRENT_EXPIRE_TIMEOUT);
}