public class ResourceInformation
extends Object
implements scala.Serializable
One example is GPUs, where the addresses would be the indices of the GPUs
param: name the name of the resource param: addresses an array of strings describing the addresses of the resource
Constructor and Description |
---|
ResourceInformation(String name,
String[] addresses) |
Modifier and Type | Method and Description |
---|---|
String[] |
addresses() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name() |
static ResourceInformation |
parseJson(org.json4s.JsonAST.JValue json) |
static ResourceInformation |
parseJson(String json)
Parses a JSON string into a
ResourceInformation instance. |
org.json4s.JsonAST.JValue |
toJson() |
String |
toString() |
public static ResourceInformation parseJson(String json)
ResourceInformation
instance.json
- (undocumented)public static ResourceInformation parseJson(org.json4s.JsonAST.JValue json)
public String name()
public String[] addresses()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public org.json4s.JsonAST.JValue toJson()