|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.model.ComputerSet
@ExportedBean public final class ComputerSet
Serves as the top of Computers in the URL hierarchy.
Getter methods are prefixed with '_' to avoid collision with computer names.
| Nested Class Summary | |
|---|---|
static class |
ComputerSet.DescriptorImpl
|
| Constructor Summary | |
|---|---|
ComputerSet()
|
|
| Method Summary | |
|---|---|
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. |
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 |
initialize()
Just to force the execution of the static initializer. |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComputerSet()
| Method Detail |
|---|
@Exported public String getDisplayName()
getDisplayName in interface ModelObjectpublic static List<NodeMonitor> get_monitors()
getMonitors().
@Exported(name="computer",
inline=true)
public Computer[] get_all()
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.
public List<String> get_slaveNames()
@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 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
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
public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
throws IOException,
javax.servlet.ServletException,
Descriptor.FormException
IOException
javax.servlet.ServletException
Descriptor.FormExceptionpublic Api getApi()
public Descriptor<ComputerSet> getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
getDescriptor in interface Describable<ComputerSet>public static void initialize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||