@ExportedBean public final class ComputerSet extends AbstractModelObject implements Describable<ComputerSet>, ModelObjectWithChildren
Computers in the URL hierarchy.
Getter methods are prefixed with '_' to avoid collision with computer names.
| Modifier and Type | Class and Description |
|---|---|
static class |
ComputerSet.DescriptorImpl |
| Constructor and Description |
|---|
ComputerSet() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkName(String name)
Makes sure that the given name is good as a slave name.
|
void |
do_launchAll(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
FormValidation |
doCheckName(String value)
Makes sure that the given name is good as a slave name.
|
ModelObjectWithContextMenu.ContextMenu |
doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Generates the context menu to list up all the children.
|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
Accepts submission from the configuration page.
|
void |
doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String name,
String mode,
String from)
First check point in creating a new slave.
|
void |
doDoCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String name,
String type)
Really creates a new slave.
|
void |
doUpdateNow(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Triggers the schedule update now.
|
Computer[] |
get_all() |
static List<NodeMonitor> |
get_monitors()
Deprecated.
as of 1.301
Use
getMonitors(). |
List<String> |
get_slaveNames()
Gets all the slave names.
|
Api |
getApi() |
int |
getBusyExecutors()
Number of busy
Executors that are carrying out some work right now. |
Descriptor<ComputerSet> |
getDescriptor()
Gets the descriptor for this instance.
|
String |
getDisplayName() |
Computer |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
int |
getIdleExecutors()
getTotalExecutors()-getBusyExecutors(), plus executors that are being brought online. |
static DescribableList<NodeMonitor,Descriptor<NodeMonitor>> |
getMonitors() |
DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> |
getNodeMonitorDescriptors()
Exposing
NodeMonitor.all() for Jelly binding. |
static Map<Descriptor<NodeMonitor>,NodeMonitor> |
getNonIgnoredMonitors()
Returns a subset pf
getMonitors() that are not ignored. |
String |
getSearchUrl()
Returns the URL of this item relative to the parent
SearchItem. |
int |
getTotalExecutors()
Number of total
Executors that belong to this label that are functioning. |
static void |
init() |
static void |
initialize()
Just to force the execution of the static initializer.
|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError@Exported public String getDisplayName()
getDisplayName in interface ModelObject@Deprecated public static List<NodeMonitor> get_monitors()
getMonitors().@Exported(name="computer",
inline=true)
public Computer[] get_all()
public ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws Exception
ModelObjectWithChildrendoChildrenContextMenu in interface ModelObjectWithChildrenExceptionpublic DescriptorExtensionList<NodeMonitor,Descriptor<NodeMonitor>> getNodeMonitorDescriptors()
NodeMonitor.all() for Jelly binding.public static DescribableList<NodeMonitor,Descriptor<NodeMonitor>> getMonitors()
public static Map<Descriptor<NodeMonitor>,NodeMonitor> getNonIgnoredMonitors()
getMonitors() that are not ignored.@Exported public int getTotalExecutors()
Executors that belong to this label that are functioning.
This excludes executors that belong to offline nodes.
@Exported public int getBusyExecutors()
Executors that are carrying out some work right now.public int getIdleExecutors()
getTotalExecutors()-getBusyExecutors(), plus executors that are being brought online.public String getSearchUrl()
SearchItemSearchItem.getSearchUrl in interface SearchItempublic Computer getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
public void do_launchAll(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
IOExceptionpublic void doUpdateNow(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void doCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
String name,
@QueryParameter
String mode,
@QueryParameter
String from)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void doDoCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
String name,
@QueryParameter
String type)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormExceptionpublic String checkName(String name) throws Failure
Failurepublic FormValidation doCheckName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
IOExceptionjavax.servlet.ServletExceptionDescriptor.FormExceptionpublic Api getApi()
public Descriptor<ComputerSet> getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass() then by default
a.getDescriptor() == b.getDescriptor() as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor in interface Describable<ComputerSet>public static void initialize()
@Initializer(after=JOB_LOADED) public static void init()
Copyright © 2019. All rights reserved.