|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.foundation.server.metadata.LoadDesc
public class LoadDesc
Description of the load on a server.
| Constructor Summary | |
|---|---|
LoadDesc(String label,
double load,
int providerID)
|
|
| Method Summary | |
|---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence. |
JSONLiteralArray |
encodeAsArray()
Encode this descriptor as a single-element JSONLiteralArray. |
String |
label()
Get the label for the server being described. |
double |
load()
Get the reported load factor. |
int |
providerID()
Get the provider ID for the server being described. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@JSONMethod(value={"label","load","provider"})
public LoadDesc(String label,
double load,
int providerID)
| Method Detail |
|---|
public String label()
public double load()
public int providerID()
public JSONLiteral encode(EncodeControl control)
encode in interface Encodablecontrol - Encode control determining what flavor of encoding
should be done.
public JSONLiteralArray encodeAsArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||