org.jclouds.smartos.compute.domain
Class VM

java.lang.Object
  extended by org.jclouds.smartos.compute.domain.VM

public class VM
extends Object

Representing a Virtual Machine (Zone / KVM )


Nested Class Summary
static class VM.Builder
           
static class VM.State
           
 
Field Summary
protected  String alias
           
protected  SmartOSHost host
           
protected  String ram
           
protected  VM.State state
           
protected  String type
           
protected  UUID uuid
           
 
Constructor Summary
VM(SmartOSHost host, UUID uuid, String type, String ram, VM.State state, String alias)
           
 
Method Summary
static VM.Builder builder()
           
 void destroy()
           
 boolean equals(Object obj)
          
 String getAlias()
           
 SmartOSHost getHost()
           
 com.google.common.base.Optional<String> getPublicAddress()
           
 String getRam()
           
 VM.State getState()
           
 String getType()
           
 UUID getUuid()
           
 int hashCode()
          
 void reboot()
           
 void start()
           
 void stop()
           
 VM.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

host

protected SmartOSHost host

uuid

protected final UUID uuid

type

protected String type

ram

protected String ram

state

protected VM.State state

alias

protected String alias
Constructor Detail

VM

public VM(SmartOSHost host,
          UUID uuid,
          String type,
          String ram,
          VM.State state,
          String alias)
Method Detail

builder

public static VM.Builder builder()

toBuilder

public VM.Builder toBuilder()

getState

public VM.State getState()

destroy

public void destroy()

reboot

public void reboot()

stop

public void stop()

start

public void start()

getPublicAddress

public com.google.common.base.Optional<String> getPublicAddress()
                                                         throws InterruptedException
Throws:
InterruptedException

getHost

public SmartOSHost getHost()

getUuid

public UUID getUuid()

getType

public String getType()

getRam

public String getRam()

getAlias

public String getAlias()

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.