Constructor and Description |
---|
LoadDesc(String label,
double load,
int providerID) |
Modifier and Type | Method and Description |
---|---|
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.
|
@JSONMethod(value={"label","load","provider"}) public LoadDesc(String label, double load, int providerID)
public String label()
public double load()
public int providerID()
public JSONLiteral encode(EncodeControl control)
public JSONLiteralArray encodeAsArray()
Copyright © 2017. All rights reserved.