Package hudson.plugins.swarm
Class SwarmSlave.DefaultSwarmSlaveFactory
java.lang.Object
hudson.plugins.swarm.SwarmSlave.DefaultSwarmSlaveFactory
- All Implemented Interfaces:
ExtensionPoint,SwarmSlaveFactory
- Enclosing class:
SwarmSlave
@Extension
public static final class SwarmSlave.DefaultSwarmSlaveFactory
extends Object
implements SwarmSlaveFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSlave(String name, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, List<? extends NodeProperty<?>> nodeProperties) booleanhaveExistingConnection(String name) Whether there is an existing agent connection of the given name.
-
Constructor Details
-
DefaultSwarmSlaveFactory
public DefaultSwarmSlaveFactory()
-
-
Method Details
-
haveExistingConnection
Description copied from interface:SwarmSlaveFactoryWhether there is an existing agent connection of the given name. We will only cause issues if we trample over an online connection.- Specified by:
haveExistingConnectionin interfaceSwarmSlaveFactory
-
createSlave
public Slave createSlave(String name, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, List<? extends NodeProperty<?>> nodeProperties) throws IOException, Descriptor.FormException - Specified by:
createSlavein interfaceSwarmSlaveFactory- Throws:
IOExceptionDescriptor.FormException
-