本文整理了Java中hudson.model.Hudson.save()
方法的一些代码示例,展示了Hudson.save()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.save()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:save
[英]Save the settings to a file.
[中]将设置保存到文件中。
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Sets the Instance Identifier.
*/
public void setInstanceTag(String name) throws IOException {
this.instanceTag = name;
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Sets the system message.
*/
public void setSystemMessage(String message) throws IOException {
this.systemMessage = message;
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public void setNumExecutors(int n) throws IOException {
this.numExecutors = n;
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public void setNoUsageStatistics(Boolean noUsageStatistics) throws IOException {
this.noUsageStatistics = noUsageStatistics;
save();
}
代码示例来源:origin: hudson/hudson-2.x
public void setNumExecutors(int n) throws IOException {
this.numExecutors = n;
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Sets the system message.
*/
public void setSystemMessage(String message) throws IOException {
this.systemMessage = message;
save();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Sets the system message.
*/
public void setSystemMessage(String message) throws IOException {
this.systemMessage = message;
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public void addView(View v) throws IOException {
v.owner = this;
views.add(v);
save();
}
代码示例来源:origin: hudson/hudson-2.x
public void addView(View v) throws IOException {
v.owner = this;
views.add(v);
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public void addView(View v) throws IOException {
v.owner = this;
views.add(v);
save();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public void addView(View v) throws IOException {
v.owner = this;
views.add(v);
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public synchronized void deleteView(View view) throws IOException {
if (views.size() <= 1) {
throw new IllegalStateException("Cannot delete last view");
}
views.remove(view);
save();
}
代码示例来源:origin: hudson/hudson-2.x
public synchronized void deleteView(View view) throws IOException {
if (views.size() <= 1) {
throw new IllegalStateException("Cannot delete last view");
}
views.remove(view);
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public synchronized void deleteView(View view) throws IOException {
if (views.size() <= 1) {
throw new IllegalStateException("Cannot delete last view");
}
views.remove(view);
save();
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public synchronized void deleteView(View view) throws IOException {
if (views.size() <= 1) {
throw new IllegalStateException("Cannot delete last view");
}
views.remove(view);
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Called by {@link Job#renameTo(String)} to update relevant data structure.
* assumed to be synchronized on Hudson by the caller.
*/
public void onRenamed(TopLevelItem job, String oldName, String newName) throws IOException {
items.remove(oldName);
items.put(newName, job);
for (View v : views) {
v.onJobRenamed(job, oldName, newName);
}
save();
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Mark this monitor as disabled, to prevent this from showing up in the UI.
*/
public void disable(boolean value) throws IOException {
Hudson hudson = Hudson.getInstance();
Set<String> set = hudson.disabledAdministrativeMonitors;
if(value) set.add(id);
else set.remove(id);
hudson.save();
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Called by {@link Job#renameTo(String)} to update relevant data structure.
* assumed to be synchronized on Hudson by the caller.
*/
public void onRenamed(TopLevelItem job, String oldName, String newName) throws IOException {
items.remove(oldName);
items.put(newName, job);
for (View v : views) {
v.onJobRenamed(job, oldName, newName);
}
save();
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Called by {@link Job#renameTo(String)} to update relevant data structure.
* assumed to be synchronized on Hudson by the caller.
*/
public void onRenamed(TopLevelItem job, String oldName, String newName) throws IOException {
items.remove(oldName);
items.put(newName, job);
for (View v : views) {
v.onJobRenamed(job, oldName, newName);
}
save();
}
代码示例来源:origin: hudson/hudson-2.x
public void setNodes(List<? extends Node> nodes) throws IOException {
// make sure that all names are unique
Set<String> names = new HashSet<String>();
for (Node n : nodes) {
if (!names.add(n.getNodeName())) {
throw new IllegalArgumentException(n.getNodeName() + " is defined more than once");
}
}
this.slaves = new NodeList(nodes);
updateComputerList();
trimLabels();
save();
}
内容来源于网络,如有侵权,请联系作者删除!