Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
63d38d35
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
63d38d35
编写于
3月 27, 2015
作者:
S
Stephen Connolly
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add @since tags
上级
d12d5657
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
20 deletion
+20
-20
core/src/main/java/hudson/model/LoadStatistics.java
core/src/main/java/hudson/model/LoadStatistics.java
+13
-13
core/src/main/java/hudson/slaves/NodeProvisioner.java
core/src/main/java/hudson/slaves/NodeProvisioner.java
+7
-7
未找到文件。
core/src/main/java/hudson/model/LoadStatistics.java
浏览文件 @
63d38d35
...
...
@@ -72,27 +72,27 @@ import java.util.List;
public
abstract
class
LoadStatistics
{
/**
* {@code true} if and only if the new way of building statistics has been implemented by this class.
* @since 1.
FIXME
* @since 1.
607
*/
private
final
boolean
modern
;
/**
* Number of executors defined for Jenkins and how it changes over time.
* @since 1.
FIXME
* @since 1.
607
*/
@Exported
public
final
MultiStageTimeSeries
definedExecutors
;
/**
* Number of executors on-line and how it changes over time. Replaces {@link #totalExecutors}
* @since 1.
FIXME
* @since 1.
607
*/
@Exported
public
final
MultiStageTimeSeries
onlineExecutors
;
/**
* Number of executors in the process of coming on-line and how it changes over time.
* @since 1.
FIXME
* @since 1.
607
*/
@Exported
public
final
MultiStageTimeSeries
connectingExecutors
;
...
...
@@ -106,14 +106,14 @@ public abstract class LoadStatistics {
/**
* Number of executors not executing and how it changes over time. Note the these executors may not be able to
* take work, see {@link #availableExecutors}.
* @since 1.
FIXME
* @since 1.
607
*/
@Exported
public
final
MultiStageTimeSeries
idleExecutors
;
/**
* Number of executors not executing and available to take work and how it changes over time.
* @since 1.
FIXME
* @since 1.
607
*/
@Exported
public
final
MultiStageTimeSeries
availableExecutors
;
...
...
@@ -289,7 +289,7 @@ public abstract class LoadStatistics {
/**
* Updates all the series from the current snapshot.
* @param current the current snapshot.
* @since 1.
FIXME
* @since 1.
607
*/
protected
void
updateCounts
(
LoadStatisticsSnapshot
current
)
{
definedExecutors
.
update
(
current
.
getDefinedExecutors
());
...
...
@@ -304,7 +304,7 @@ public abstract class LoadStatistics {
/**
* Returns the {@link Node} instances that this statistic counts.
* @return the {@link Node}
* @since 1.
FIXME
* @since 1.
607
*/
protected
abstract
Iterable
<
Node
>
getNodes
();
...
...
@@ -312,7 +312,7 @@ public abstract class LoadStatistics {
* Returns {@code true} is the specified {@link SubTask} from the {@link Queue} should be counted.
* @param item the {@link SubTask}
* @return {@code true} IFF the specified {@link SubTask} from the {@link Queue} should be counted.
* @since 1.
FIXME
* @since 1.
607
*/
protected
abstract
boolean
matches
(
SubTask
item
);
...
...
@@ -325,7 +325,7 @@ public abstract class LoadStatistics {
* for at least one point in time during the execution of this method.
*
* @return a self-consistent snapshot of the load statistics.
* @since 1.
FIXME
* @since 1.
607
*/
public
LoadStatisticsSnapshot
computeSnapshot
()
{
if
(
modern
)
{
...
...
@@ -342,7 +342,7 @@ public abstract class LoadStatistics {
* @param queue the queue items.
* @return a self-consistent snapshot of the load statistics.
* @since 1.
FIXME
* @since 1.
607
*/
protected
LoadStatisticsSnapshot
computeSnapshot
(
Iterable
<
Queue
.
BuildableItem
>
queue
)
{
final
LoadStatisticsSnapshot
.
Builder
builder
=
LoadStatisticsSnapshot
.
builder
();
...
...
@@ -410,7 +410,7 @@ public abstract class LoadStatistics {
/**
* Holds a snapshot of the current statistics.
* @since 1.
FIXME
* @since 1.
607
*/
@ExportedBean
public
static
class
LoadStatisticsSnapshot
implements
Serializable
{
...
...
@@ -587,7 +587,7 @@ public abstract class LoadStatistics {
/**
* Use a builder so we can add more stats if needed.
* Not thread safe
* @since 1.
FIXME
* @since 1.
607
*/
public
static
class
Builder
{
private
int
definedExecutors
;
...
...
core/src/main/java/hudson/slaves/NodeProvisioner.java
浏览文件 @
63d38d35
...
...
@@ -382,7 +382,7 @@ public class NodeProvisioner {
/**
* The current snapshot of the load statistics for this {@link #getLabel()}.
* @since 1.
FIXME
* @since 1.
607
*/
public
LoadStatistics
.
LoadStatisticsSnapshot
getSnapshot
()
{
return
snapshot
;
...
...
@@ -464,7 +464,7 @@ public class NodeProvisioner {
/**
* The time series average number of defined executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getDefinedExecutorsLatest
()
{
return
stat
.
definedExecutors
.
getLatest
(
TIME_SCALE
);
...
...
@@ -472,7 +472,7 @@ public class NodeProvisioner {
/**
* The time series average number of online executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getOnlineExecutorsLatest
()
{
return
stat
.
onlineExecutors
.
getLatest
(
TIME_SCALE
);
...
...
@@ -480,7 +480,7 @@ public class NodeProvisioner {
/**
* The time series average number of connecting executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getConnectingExecutorsLatest
()
{
return
stat
.
connectingExecutors
.
getLatest
(
TIME_SCALE
);
...
...
@@ -488,7 +488,7 @@ public class NodeProvisioner {
/**
* The time series average number of busy executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getBusyExecutorsLatest
()
{
return
stat
.
busyExecutors
.
getLatest
(
TIME_SCALE
);
...
...
@@ -496,7 +496,7 @@ public class NodeProvisioner {
/**
* The time series average number of idle executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getIdleExecutorsLatest
()
{
return
stat
.
idleExecutors
.
getLatest
(
TIME_SCALE
);
...
...
@@ -504,7 +504,7 @@ public class NodeProvisioner {
/**
* The time series average number of available executors for this {@link #getLabel()}
* @since 1.
FIXME
* @since 1.
607
*/
public
float
getAvailableExecutorsLatest
()
{
return
stat
.
availableExecutors
.
getLatest
(
TIME_SCALE
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录