public static class SystemLoad.NodeLoad extends Object implements Comparable<SystemLoad.NodeLoad>
| Modifier and Type | Field and Description |
|---|---|
protected float |
currentLoad
This node's current load
|
protected String |
host
This node's base URL
|
protected float |
maxLoad |
| Constructor and Description |
|---|
NodeLoad()
No-arg constructor needed by JAXB
|
NodeLoad(String host,
float currentload,
float maxload) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SystemLoad.NodeLoad other) |
boolean |
exceeds(SystemLoad.NodeLoad other) |
float |
getCurrentLoad() |
String |
getHost() |
float |
getLoadFactor() |
float |
getMaxLoad() |
void |
modifyLoad(float modifier)
Modifies the load for this node
|
void |
setCurrentLoad(float load) |
void |
setHost(String host) |
void |
setMaxLoad(float load) |
protected String host
protected float currentLoad
protected float maxLoad
public NodeLoad()
public NodeLoad(String host, float currentload, float maxload)
public String getHost()
public void setHost(String host)
host - the host to setpublic float getLoadFactor()
public void modifyLoad(float modifier)
modifier - the amount to add or subtract from the current loadpublic float getCurrentLoad()
public void setCurrentLoad(float load)
public float getMaxLoad()
public void setMaxLoad(float load)
public int compareTo(SystemLoad.NodeLoad other)
compareTo in interface Comparable<SystemLoad.NodeLoad>public boolean exceeds(SystemLoad.NodeLoad other)
Copyright © 2009–2020 Opencast Project. All rights reserved.