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  ResourceInformationinstance. | 
| 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 Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic final org.json4s.JsonAST.JValue toJson()