提交 9af8c71b 编写于 作者: K kohsuke

first step to introduce the remoting dependency on core.

I'm still not totally comfortable if the current POM works correctly, so let's start small.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1380 71c3de6d-444a-0410-be80-ed276b4c234a
上级 183e0e53
package hudson.model;
import hudson.remoting.VirtualChannel;
import hudson.util.RunList;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
......@@ -8,8 +10,6 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import hudson.util.RunList;
/**
* Represents a set of {@link Executor}s on the same computer.
*
......@@ -33,7 +33,7 @@ import hudson.util.RunList;
*
* @author Kohsuke Kawaguchi
*/
public class Computer implements ModelObject {
public final class Computer implements ModelObject {
private final List<Executor> executors = new ArrayList<Executor>();
private int numExecutors;
......@@ -49,6 +49,12 @@ public class Computer implements ModelObject {
*/
private String nodeName;
/**
* Represents the communication endpoint to this computer.
* Never null.
*/
private VirtualChannel channel;
public Computer(Node node) {
assert node.getNumExecutors()!=0 : "Computer created with 0 executors";
setNode(node);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册