|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.slaves.ComputerListener
org.jenkinsci.plugins.jqsmonitoring.slaves.SlavesHolder
@ExportedBean public final class SlavesHolder
Holds all information about the slaves in the current jenkins instance.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Method Summary | |
|---|---|
hudson.model.Api |
getApi()
REST API. |
String |
getColor(hudson.model.Slave s)
Return the color assotiated with this slave . |
static SlavesHolder |
getInstance()
Return the instance for this class(Singleton). |
String |
getLastBuild(hudson.model.Slave slave)
Return the last build for a given slave. |
int |
getNumberOfOnlineSlaves()
Return number of online slaves. |
int |
getNumberOfSlaves()
The number of slaves. |
ArrayList<hudson.model.Slave> |
getSlaves()
List with all slaves. |
String |
getUrl(hudson.model.Slave slave)
Returns the url for a certain slave. |
void |
onConfigurationChange()
|
| Methods inherited from class hudson.slaves.ComputerListener |
|---|
all, onLaunchFailure, onOffline, onOnline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, preOnline, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SlavesHolder getInstance()
public hudson.model.Api getApi()
public void onConfigurationChange()
onConfigurationChange in class hudson.slaves.ComputerListener@Exported public ArrayList<hudson.model.Slave> getSlaves()
@Exported public int getNumberOfSlaves()
public String getUrl(hudson.model.Slave slave)
slave - the slave.
public String getLastBuild(hudson.model.Slave slave)
slave - the slave.
@Exported public int getNumberOfOnlineSlaves()
public String getColor(hudson.model.Slave s)
s - the slave.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||