Package hudson.slaves
Class NodeDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<Node>
-
- hudson.slaves.NodeDescriptor
-
- Direct Known Subclasses:
Jenkins.DescriptorImpl,Slave.SlaveDescriptor
public abstract class NodeDescriptor extends Descriptor<Node>
DescriptorforSlave.Views
This object needs to have
newInstanceDetail.jellyview, which shows up inhttp://server/hudson/computers/newpage as an explanation of this job type.Other Implementation Notes
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description static DescriptorList<Node>ALL-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodeDescriptor()protectedNodeDescriptor(Class<? extends Node> clazz)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<Node,NodeDescriptor>all()Returns all the registeredNodeDescriptordescriptors.static List<NodeDescriptor>allInstantiable()FormValidationdoCheckName(String value)StringgetConfigPage()voidhandleNewNodePage(ComputerSet computerSet, String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Handles the form submission from the "/computer/new" page, which is the first form for creating a new node.booleanisInstantiable()Can the administrator create this type of nodes from UI? Return false if it only makes sense for programs to create it, not through the "new node" UI.StringnewInstanceDetailPage()-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
ALL
@Deprecated public static final DescriptorList<Node> ALL
All the registered instances.
-
-
Method Detail
-
isInstantiable
public boolean isInstantiable()
Can the administrator create this type of nodes from UI? Return false if it only makes sense for programs to create it, not through the "new node" UI.
-
newInstanceDetailPage
public final String newInstanceDetailPage()
-
handleNewNodePage
public void handleNewNodePage(ComputerSet computerSet, String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
Handles the form submission from the "/computer/new" page, which is the first form for creating a new node. By default, it shows the configuration page for entering details, but subtypes can override this differently.- Parameters:
name- Name of the new node.- Throws:
IOExceptionjavax.servlet.ServletException
-
getConfigPage
public String getConfigPage()
- Overrides:
getConfigPagein classDescriptor<Node>
-
doCheckName
public FormValidation doCheckName(@QueryParameter String value)
-
all
public static DescriptorExtensionList<Node,NodeDescriptor> all()
Returns all the registeredNodeDescriptordescriptors.
-
allInstantiable
public static List<NodeDescriptor> allInstantiable()
-
-