|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.joyent.cloudapi.v6_5.domain.Machine
public class Machine
a SmartMachine or traditional Virtual Machine
| Nested Class Summary | |
|---|---|
static class |
Machine.Builder
|
static class |
Machine.State
|
static class |
Machine.Type
|
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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,org.jclouds.domain.JsonBall> metadata)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 Set<String> ips
protected final Date created
protected final Date updated
| Constructor Detail |
|---|
@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,org.jclouds.domain.JsonBall> metadata)
| Method Detail |
|---|
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 Set<String> getIps()
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 boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Machine that)
compareTo in interface Comparable<Machine>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||