Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
jenkins
提交
c0f70656
J
jenkins
项目概览
野花太放肆
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
c0f70656
编写于
7月 04, 2012
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added a marker interface to help plugin developers.
上级
a8b609ef
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
29 addition
and
5 deletion
+29
-5
core/src/main/java/hudson/PluginManager.java
core/src/main/java/hudson/PluginManager.java
+2
-1
core/src/main/java/hudson/model/Job.java
core/src/main/java/hudson/model/Job.java
+2
-1
core/src/main/java/hudson/model/Node.java
core/src/main/java/hudson/model/Node.java
+2
-1
core/src/main/java/hudson/model/Run.java
core/src/main/java/hudson/model/Run.java
+2
-1
core/src/main/java/hudson/model/UpdateCenter.java
core/src/main/java/hudson/model/UpdateCenter.java
+2
-1
core/src/main/java/jenkins/util/io/OnMaster.java
core/src/main/java/jenkins/util/io/OnMaster.java
+19
-0
未找到文件。
core/src/main/java/hudson/PluginManager.java
浏览文件 @
c0f70656
...
...
@@ -46,6 +46,7 @@ import jenkins.InitReactorRunner;
import
jenkins.RestartRequiredException
;
import
jenkins.YesNoMaybe
;
import
jenkins.model.Jenkins
;
import
jenkins.util.io.OnMaster
;
import
org.apache.commons.fileupload.FileItem
;
import
org.apache.commons.fileupload.disk.DiskFileItemFactory
;
import
org.apache.commons.fileupload.servlet.ServletFileUpload
;
...
...
@@ -99,7 +100,7 @@ import static hudson.init.InitMilestone.*;
* @author Kohsuke Kawaguchi
*/
@ExportedBean
public
abstract
class
PluginManager
extends
AbstractModelObject
{
public
abstract
class
PluginManager
extends
AbstractModelObject
implements
OnMaster
{
/**
* All discovered plugins.
*/
...
...
core/src/main/java/hudson/model/Job.java
浏览文件 @
c0f70656
...
...
@@ -60,6 +60,7 @@ import hudson.widgets.HistoryWidget.Adapter;
import
hudson.widgets.Widget
;
import
jenkins.model.Jenkins
;
import
jenkins.model.ProjectNamingStrategy
;
import
jenkins.util.io.OnMaster
;
import
net.sf.json.JSONException
;
import
net.sf.json.JSONObject
;
import
org.jfree.chart.ChartFactory
;
...
...
@@ -102,7 +103,7 @@ import static javax.servlet.http.HttpServletResponse.*;
* @author Kohsuke Kawaguchi
*/
public
abstract
class
Job
<
JobT
extends
Job
<
JobT
,
RunT
>,
RunT
extends
Run
<
JobT
,
RunT
>>
extends
AbstractItem
implements
ExtensionPoint
,
StaplerOverridable
{
extends
AbstractItem
implements
ExtensionPoint
,
StaplerOverridable
,
OnMaster
{
/**
* Next build number. Kept in a separate file because this is the only
...
...
core/src/main/java/hudson/model/Node.java
浏览文件 @
c0f70656
...
...
@@ -59,6 +59,7 @@ import java.util.List;
import
java.util.logging.Logger
;
import
jenkins.model.Jenkins
;
import
jenkins.util.io.OnMaster
;
import
net.sf.json.JSONObject
;
import
org.kohsuke.stapler.BindInterceptor
;
import
org.kohsuke.stapler.Stapler
;
...
...
@@ -77,7 +78,7 @@ import org.kohsuke.stapler.export.Exported;
* @see NodeDescriptor
*/
@ExportedBean
public
abstract
class
Node
extends
AbstractModelObject
implements
ReconfigurableDescribable
<
Node
>,
ExtensionPoint
,
AccessControlled
{
public
abstract
class
Node
extends
AbstractModelObject
implements
ReconfigurableDescribable
<
Node
>,
ExtensionPoint
,
AccessControlled
,
OnMaster
{
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
Node
.
class
.
getName
());
...
...
core/src/main/java/hudson/model/Run.java
浏览文件 @
c0f70656
...
...
@@ -97,6 +97,7 @@ import javax.servlet.ServletException;
import
javax.servlet.http.HttpServletResponse
;
import
jenkins.model.Jenkins
;
import
jenkins.util.io.OnMaster
;
import
net.sf.json.JSONObject
;
import
org.apache.commons.io.input.NullInputStream
;
import
org.apache.commons.io.IOUtils
;
...
...
@@ -128,7 +129,7 @@ import static java.util.logging.Level.*;
*/
@ExportedBean
public
abstract
class
Run
<
JobT
extends
Job
<
JobT
,
RunT
>,
RunT
extends
Run
<
JobT
,
RunT
>>
extends
Actionable
implements
ExtensionPoint
,
Comparable
<
RunT
>,
AccessControlled
,
PersistenceRoot
,
DescriptorByNameOwner
{
extends
Actionable
implements
ExtensionPoint
,
Comparable
<
RunT
>,
AccessControlled
,
PersistenceRoot
,
DescriptorByNameOwner
,
OnMaster
{
protected
transient
final
JobT
project
;
...
...
core/src/main/java/hudson/model/UpdateCenter.java
浏览文件 @
c0f70656
...
...
@@ -47,6 +47,7 @@ import hudson.util.PersistedList;
import
hudson.util.XStream2
;
import
jenkins.RestartRequiredException
;
import
jenkins.model.Jenkins
;
import
jenkins.util.io.OnMaster
;
import
org.acegisecurity.Authentication
;
import
org.acegisecurity.context.SecurityContext
;
import
org.apache.commons.io.input.CountingInputStream
;
...
...
@@ -104,7 +105,7 @@ import org.kohsuke.stapler.interceptor.RequirePOST;
* @since 1.220
*/
@ExportedBean
public
class
UpdateCenter
extends
AbstractModelObject
implements
Saveable
{
public
class
UpdateCenter
extends
AbstractModelObject
implements
Saveable
,
OnMaster
{
private
static
final
String
UPDATE_CENTER_URL
=
System
.
getProperty
(
UpdateCenter
.
class
.
getName
()+
".updateCenterUrl"
,
"http://updates.jenkins-ci.org/"
);
...
...
core/src/main/java/jenkins/util/io/OnMaster.java
0 → 100644
浏览文件 @
c0f70656
package
jenkins.util.io
;
/**
* Marks the objects in Jenkins that only exist in the core
* and not on slaves.
*
* <p>
* This marker interface is for plugin developers to quickly
* tell if they can take a specific object from a master to
* a slave.
*
* (Core developers, if you find classes/interfaces that extend
* from this, please be encouraged to add them.)
*
* @author Kohsuke Kawaguchi
* @since 1.475
*/
public
interface
OnMaster
{
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录