public class StatusResponse extends Response
Constructor and Description |
---|
StatusResponse(int queueLength,
int runningLength,
ResourceQuantity totalUsed,
int numSlaves,
int offers,
ResourceQuantity totalOffered,
java.lang.String serverVersion) |
StatusResponse(java.lang.String serverVersion) |
Modifier and Type | Method and Description |
---|---|
int |
numSlaves() |
int |
offers() |
int |
queueLength() |
int |
runningLength() |
java.lang.String |
serverVersion() |
void |
setOffers(int size,
ResourceQuantity offered) |
void |
setUsedResources(int queueLength,
int runningLength,
ResourceQuantity totalUsed) |
ResourceQuantity |
totalOffered() |
ResourceQuantity |
totalUsed() |
public StatusResponse(int queueLength, int runningLength, ResourceQuantity totalUsed, int numSlaves, int offers, ResourceQuantity totalOffered, java.lang.String serverVersion)
public StatusResponse(java.lang.String serverVersion)
public int queueLength()
public int runningLength()
public ResourceQuantity totalUsed()
public int numSlaves()
public int offers()
public ResourceQuantity totalOffered()
public java.lang.String serverVersion()
public void setOffers(int size, ResourceQuantity offered)
public void setUsedResources(int queueLength, int runningLength, ResourceQuantity totalUsed)