提交 b6c0519b 编写于 作者: K kohsuke

compilation fix

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15350 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d249924b
......@@ -30,12 +30,17 @@ import hudson.model.Node;
*
* @author Kohsuke Kawaguchi
*/
public abstract class EphemeralNode extends Node {
public interface EphemeralNode {
/**
* Type-safe cast.
*/
Node asNode();
/**
* Gets the {@link Cloud} that created this {@link EphemeralNode}.
*
* @return
* never null.
*/
public abstract Cloud getCloud();
Cloud getCloud();
}
......@@ -104,6 +104,10 @@ public class NodeListTest extends TestCase {
public Cloud getCloud() {
throw new UnsupportedOperationException();
}
public Node asNode() {
return this;
}
}
public void testSerialization() throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册