Package hudson.plugins.swarm
Class PluginImpl
- java.lang.Object
-
- hudson.Plugin
-
- hudson.plugins.swarm.PluginImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl
-
-
Field Summary
-
Fields inherited from class hudson.Plugin
SKIP_PERMISSION_CHECK
-
-
Constructor Summary
Constructors Constructor Description PluginImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAddSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String name, String labels)
Add labels to an agent.void
doCreateSlave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String name, String description, int executors, String remoteFsRoot, String labels, Node.Mode mode, String hash, boolean deleteExistingClients, boolean keepDisconnectedClients)
Add a new Swarm agent.void
doGetSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String name)
Get the list of labels for an agent.void
doRemoveSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, String name, String labels)
Remove labels from an agent.-
Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getTarget, getWrapper, load, postInitialize, save, setServletContext, start, stop
-
-
-
-
Method Detail
-
doGetSlaveLabels
public void doGetSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name) throws IOException
Get the list of labels for an agent.- Throws:
IOException
-
doAddSlaveLabels
@POST public void doAddSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name, @QueryParameter String labels) throws IOException
Add labels to an agent.- Throws:
IOException
-
doRemoveSlaveLabels
@POST public void doRemoveSlaveLabels(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name, @QueryParameter String labels) throws IOException
Remove labels from an agent.- Throws:
IOException
-
doCreateSlave
@POST public void doCreateSlave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter String name, @QueryParameter(fixEmpty=true) String description, @QueryParameter int executors, @QueryParameter String remoteFsRoot, @QueryParameter String labels, @QueryParameter Node.Mode mode, @QueryParameter(fixEmpty=true) String hash, @QueryParameter boolean deleteExistingClients, @QueryParameter boolean keepDisconnectedClients) throws IOException
Add a new Swarm agent.- Throws:
IOException
-
-