Package hudson.plugins.swarm
Interface SwarmSlaveFactory
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
SwarmSlave.DefaultSwarmSlaveFactory
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface SwarmSlaveFactory
extends ExtensionPoint
Customizable mechanism for creating the actual agent.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
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.
-
Method Details
-
haveExistingConnection
Whether there is an existing agent connection of the given name. We will only cause issues if we trample over an online connection. -
createSlave
Slave createSlave(String name, String nodeDescription, String remoteFS, int numExecutors, Node.Mode mode, String labelString, List<? extends NodeProperty<?>> nodeProperties) throws IOException, Descriptor.FormException - Throws:
IOExceptionDescriptor.FormException
-