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


Java TeamCityProperties.getInteger方法代码示例

本文整理汇总了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();
}
 
开发者ID:JetBrains,项目名称:teamcity-kubernetes-plugin,代码行数:13,代码来源:KubeDataCacheImpl.java

示例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();
}
 
开发者ID:JetBrains,项目名称:teamcity-kubernetes-plugin,代码行数:13,代码来源:KubeDataCacheImpl.java

示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:12,代码来源:AgentTorrentsSeeder.java

示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:9,代码来源:TorrentConfigurator.java

示例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();
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:10,代码来源:TorrentConfigurator.java

示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:5,代码来源:AgentConfiguration.java

示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:6,代码来源:TorrentConfigurator.java

示例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);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:6,代码来源:TorrentConfigurator.java

示例12: getMaxConnectionsCount

import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
@Override
public int getMaxConnectionsCount() {
  return TeamCityProperties.getInteger(MAX_INCOMING_CONNECTIONS, DEFAULT_MAX_CONNECTIONS);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:5,代码来源:TorrentConfigurator.java

示例13: getAnnounceIntervalSec

import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public int getAnnounceIntervalSec() {
  return TeamCityProperties.getInteger(ANNOUNCE_INTERVAL, DEFAULT_ANNOUNCE_INTERVAL);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:4,代码来源:TorrentConfigurator.java

示例14: getTrackerTorrentExpireTimeoutSec

import jetbrains.buildServer.serverSide.TeamCityProperties; //导入方法依赖的package包/类
public int getTrackerTorrentExpireTimeoutSec() {
  return TeamCityProperties.getInteger(TRACKER_TORRENT_EXPIRE_TIMEOUT, DEFAULT_TRACKER_TORRENT_EXPIRE_TIMEOUT);
}
 
开发者ID:JetBrains,项目名称:teamcity-torrent-plugin,代码行数:4,代码来源:TorrentConfigurator.java


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