public class Machine extends Object implements Comparable<Machine>
Modifier and Type | Class and Description |
---|---|
static class |
Machine.Builder |
static class |
Machine.State |
static class |
Machine.Type |
Modifier and Type | Field and Description |
---|---|
protected Date |
created |
protected String |
dataset |
protected int |
diskSizeGb |
protected String |
id |
protected Set<String> |
ips |
protected int |
memorySizeMb |
protected String |
name |
protected Machine.State |
state |
protected Machine.Type |
type |
protected Date |
updated |
Constructor and Description |
---|
Machine(String id,
String name,
Machine.Type type,
Machine.State state,
String dataset,
int memorySizeMb,
int diskSizeGb,
Set<String> ips,
Date created,
Date updated,
Map<String,JsonBall> metadata) |
Modifier and Type | Method and Description |
---|---|
static Machine.Builder |
builder() |
int |
compareTo(Machine that) |
boolean |
equals(Object object) |
Date |
getCreated()
When this machine was created
|
String |
getDatasetURN()
The dataset urn this machine was provisioned with
|
int |
getDiskSizeGb()
The amount of disk this machine has (Gb)
|
String |
getId()
The globally unique id for this machine
|
Set<String> |
getIps()
The IP addresses this machine has
|
int |
getMemorySizeMb()
The amount of memory this machine has (Mb)
|
Map<String,String> |
getMetadata()
Any "extra" metadata this machine has
|
Map<String,String> |
getMetadataAsJsonLiterals()
note
|
String |
getName()
The "friendly" name for this machine
|
Machine.State |
getState()
The current state of this machine
|
Machine.Type |
getType()
Whether this is a smartmachine or virtualmachine
|
Date |
getUpdated()
When this machine was updated
|
int |
hashCode() |
Machine.Builder |
toBuilder() |
String |
toString() |
protected final String id
protected final String name
protected final Machine.Type type
protected final Machine.State state
protected final String dataset
@Named(value="memory") protected final int memorySizeMb
@Named(value="disk") protected final int diskSizeGb
protected final Date created
protected final Date updated
@ConstructorProperties(value={"id","name","type","state","dataset","memory","disk","ips","created","updated","metadata"}) public Machine(String id, String name, Machine.Type type, Machine.State state, String dataset, int memorySizeMb, int diskSizeGb, Set<String> ips, Date created, Date updated, Map<String,JsonBall> metadata)
public static Machine.Builder builder()
public Machine.Builder toBuilder()
public String getId()
public String getName()
public Machine.Type getType()
public Machine.State getState()
public String getDatasetURN()
public int getMemorySizeMb()
public int getDiskSizeGb()
public Date getCreated()
public Date getUpdated()
public Map<String,String> getMetadataAsJsonLiterals()
Metadata.valueType
,
Json.fromJson(java.lang.String, java.lang.reflect.Type)
public Map<String,String> getMetadata()
getMetadataAsJsonLiterals()
public int compareTo(Machine that)
compareTo
in interface Comparable<Machine>
Copyright © 2009-2013 jclouds. All Rights Reserved.