Class PretendSlave

java.lang.Object
hudson.model.AbstractModelObject
hudson.model.Node
hudson.model.Slave
org.jvnet.hudson.test.PretendSlave
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.Node>, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.ReconfigurableDescribable<hudson.model.Node>, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, Serializable, jenkins.util.io.OnMaster

public class PretendSlave extends hudson.model.Slave
Slave that pretends to fork processes.
Author:
Kohsuke Kawaguchi
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class hudson.model.Slave

    hudson.model.Slave.JnlpJar, hudson.model.Slave.SlaveDescriptor

    Nested classes/interfaces inherited from class hudson.model.Node

    hudson.model.Node.InternalComputerListener, hudson.model.Node.Mode

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Number of processed that are launched.

    Fields inherited from class hudson.model.Slave

    name, remoteFS

    Fields inherited from class hudson.model.Node

    holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS

    Fields inherited from interface hudson.model.Saveable

    NOOP
  • Constructor Summary

    Constructors
    Constructor
    Description
    PretendSlave(String name, String remoteFS, int numExecutors, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher launcher, FakeLauncher faker)
     
    PretendSlave(String name, String remoteFS, String labelString, hudson.slaves.ComputerLauncher launcher, FakeLauncher faker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    hudson.Launcher
    createLauncher(hudson.model.TaskListener listener)
     

    Methods inherited from class hudson.model.Slave

    createComputer, equals, getClockDifferenceCallable, getComputer, getDescriptor, getLabelAtomSet, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, hashCode, readResolve, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId, toString

    Methods inherited from class hudson.model.Node

    canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getConfigFile, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getRootDir, getSearchUrl, getSelfLabel, getTemporaryOfflineCause, isAcceptingTasks, isHoldOffLaunchUntilSave, onLoad, reconfigure, reconfigure, save, toComputer

    Methods inherited from class hudson.model.AbstractModelObject

    getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface hudson.security.AccessControlled

    checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
  • Field Details

    • numLaunch

      public int numLaunch
      Number of processed that are launched.
  • Constructor Details

    • PretendSlave

      public PretendSlave(String name, String remoteFS, int numExecutors, hudson.model.Node.Mode mode, String labelString, hudson.slaves.ComputerLauncher launcher, FakeLauncher faker) throws IOException, hudson.model.Descriptor.FormException
      Throws:
      IOException
      hudson.model.Descriptor.FormException
    • PretendSlave

      public PretendSlave(String name, String remoteFS, String labelString, hudson.slaves.ComputerLauncher launcher, FakeLauncher faker) throws IOException, hudson.model.Descriptor.FormException
      Throws:
      IOException
      hudson.model.Descriptor.FormException
  • Method Details

    • createLauncher

      @NonNull public hudson.Launcher createLauncher(hudson.model.TaskListener listener)
      Overrides:
      createLauncher in class hudson.model.Slave