提交 2971427b 编写于 作者: K kohsuke

added a callback for configuration changes in Nodes.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34817 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c2314a90
......@@ -1096,6 +1096,8 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
}
}
getQueue().scheduleMaintenance();
for (ComputerListener cl : ComputerListener.all())
cl.onConfigurationChange();
}
private void updateComputer(Node n, Map<String,Computer> byNameMap, Set<Computer> used) {
......
......@@ -123,6 +123,12 @@ public abstract class ComputerListener implements ExtensionPoint {
*/
public void onOffline(Computer c) {}
/**
* Called when configuration of the node was changed, a node is added/removed, etc.
* @since 1.377
*/
public void onConfigurationChange() {}
/**
* Registers this {@link ComputerListener} so that it will start receiving events.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册