Package hudson.slaves
Class NodeDescriptor
- Direct Known Subclasses:
Jenkins.DescriptorImpl
,Slave.SlaveDescriptor
Descriptor
for Slave
.
Views
This object needs to have newInstanceDetail.jelly
view, which shows up in
http://server/hudson/computers/new
page 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 inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all the registeredNodeDescriptor
descriptors.static List<NodeDescriptor>
doCheckName
(String value) void
handleNewNodePage
(ComputerSet computerSet, String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Handles the form submission from the "/computer/new" page, which is the first form for creating a new node.boolean
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.final String
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
ALL
All the registered instances.
-
-
Constructor Details
-
NodeDescriptor
-
NodeDescriptor
protected NodeDescriptor()
-
-
Method Details
-
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
-
handleNewNodePage
public void handleNewNodePage(ComputerSet computerSet, String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.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:
IOException
jakarta.servlet.ServletException
-
getConfigPage
- Overrides:
getConfigPage
in classDescriptor<Node>
-
doCheckName
-
all
Returns all the registeredNodeDescriptor
descriptors. -
allInstantiable
-
all()
for read access, andExtension
for registration.