@ExportedBean public final class ComputerSet extends AbstractModelObject implements Describable<ComputerSet>, ModelObjectWithChildren
Computer
s 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 an agent 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 an agent 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 agent.
|
void |
doDoCreateItem(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String name,
String type)
Really creates a new agent.
|
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 agent names.
|
Api |
getApi() |
int |
getBusyExecutors()
Number of busy
Executor s that are carrying out some work right now. |
static List<String> |
getComputerNames() |
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
Executor s 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
ModelObjectWithChildren
doChildrenContextMenu
in interface ModelObjectWithChildren
Exception
public 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()
Executor
s that belong to this label that are functioning.
This excludes executors that belong to offline nodes.
@Exported public int getBusyExecutors()
Executor
s that are carrying out some work right now.public int getIdleExecutors()
getTotalExecutors()-getBusyExecutors()
, plus executors that are being brought online.public String getSearchUrl()
SearchItem
SearchItem
.getSearchUrl
in interface SearchItem
public 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
IOException
public void doUpdateNow(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public 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
IOException
javax.servlet.ServletException
@POST public 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
IOException
javax.servlet.ServletException
Descriptor.FormException
public String checkName(String name) throws Failure
Failure
public FormValidation doCheckName(@QueryParameter String value) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
@POST public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req) throws IOException, javax.servlet.ServletException, Descriptor.FormException
IOException
javax.servlet.ServletException
Descriptor.FormException
public 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_CONFIG_ADAPTED) public static void init()
Copyright © 2004–2021. All rights reserved.