提交 3c076ee0 编写于 作者: K kohsuke

there are situations where this marking is useful outside Cloud

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17800 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c66765f2
......@@ -26,7 +26,7 @@ package hudson.slaves;
import hudson.model.Node;
/**
* {@link Node}s that are created by {@link Cloud} and hence not persisted as configuration by itself.
* {@link Node}s that are not persisted as configuration by itself.
*
* @author Kohsuke Kawaguchi
*/
......@@ -35,12 +35,4 @@ public interface EphemeralNode {
* Type-safe cast.
*/
Node asNode();
/**
* Gets the {@link Cloud} that created this {@link EphemeralNode}.
*
* @return
* never null.
*/
Cloud getCloud();
}
......@@ -108,10 +108,6 @@ public class NodeListTest extends TestCase {
}
}
static class EphemeralNode extends DummyNode implements hudson.slaves.EphemeralNode {
public Cloud getCloud() {
throw new UnsupportedOperationException();
}
public Node asNode() {
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册