@ExportedBean
public final class SlavesHolder
extends hudson.slaves.ComputerListener
| Modifier and Type | Method and Description |
|---|---|
hudson.model.Api |
getApi()
REST API.
|
String |
getColor(hudson.model.Slave s)
Return the color assotiated with this slave . red - offline orange - all
executors busy green - free executor
|
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 |
getNumberOfOfflineSlaves()
Return number of offline slaves.
|
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() |
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()
@Exported public int getNumberOfOfflineSlaves()
public String getColor(hudson.model.Slave s)
s - the slave.Copyright © 2004-2013. All Rights Reserved.