All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.model.Slave Maven / Gradle / Ivy

package hudson.model;

import hudson.FilePath;
import hudson.Launcher;
import hudson.Launcher.RemoteLauncher;
import hudson.Util;
import hudson.slaves.ComputerLauncher;
import hudson.slaves.RetentionStrategy;
import hudson.slaves.CommandLauncher;
import hudson.slaves.JNLPLauncher;
import hudson.slaves.SlaveComputer;
import hudson.model.Descriptor.FormException;
import hudson.remoting.Callable;
import hudson.remoting.VirtualChannel;
import hudson.tasks.DynamicLabeler;
import hudson.tasks.LabelFinder;
import hudson.util.ClockDifference;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.DataBoundConstructor;

import javax.servlet.ServletException;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.net.URL;
import java.net.URLConnection;
import java.util.*;

/**
 * Information about a Hudson slave node.
 *
 * 

* Ideally this would have been in the hudson.slaves package, * but for compatibility reasons, it can't. * * @author Kohsuke Kawaguchi */ public final class Slave implements Node, Serializable { /** * Name of this slave node. */ protected final String name; /** * Description of this node. */ private final String description; /** * Path to the root of the workspace * from the view point of this node, such as "/hudson" */ protected final String remoteFS; /** * Number of executors of this node. */ private int numExecutors = 2; /** * Job allocation strategy. */ private Mode mode; /** * Slave availablility strategy. */ private RetentionStrategy retentionStrategy; /** * The starter that will startup this slave. */ private ComputerLauncher launcher; /** * Whitespace-separated labels. */ private String label=""; /** * Lazily computed set of labels from {@link #label}. */ private transient volatile Set





© 2015 - 2025 Weber Informatics LLC | Privacy Policy