org.jclouds.cloudservers.domain
Class Image

java.lang.Object
  extended by org.jclouds.cloudservers.domain.Image

public class Image
extends Object

An image is a collection of files used to create or rebuild a server. Rackspace provides a number of pre-built OS images by default. You may also create custom images from cloud servers you have launched. These custom images are useful for backup purposes or for producing gold server images if you plan to deploy a particular server configuration frequently.

Author:
Adrian Cole

Constructor Summary
Image()
           
Image(int id, String name)
           
 
Method Summary
 boolean equals(Object obj)
          note that this ignores the serverid and create time.
 Date getCreated()
           
 int getId()
           
 String getName()
           
 Integer getProgress()
           
 Integer getServerId()
           
 ImageStatus getStatus()
           
 Date getUpdated()
           
 int hashCode()
          note that this ignores the create time
 void setCreated(Date created)
           
 void setId(int id)
           
 void setName(String name)
           
 void setProgress(Integer progress)
           
 void setServerId(Integer serverId)
           
 void setStatus(ImageStatus status)
           
 void setUpdated(Date updated)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image()

Image

public Image(int id,
             String name)
Method Detail

setCreated

public void setCreated(Date created)

getCreated

public Date getCreated()

setId

public void setId(int id)

getId

public int getId()

setName

public void setName(String name)

getName

public String getName()

setProgress

public void setProgress(Integer progress)

getProgress

public Integer getProgress()

setServerId

public void setServerId(Integer serverId)

getServerId

public Integer getServerId()

setStatus

public void setStatus(ImageStatus status)

getStatus

public ImageStatus getStatus()

setUpdated

public void setUpdated(Date updated)

getUpdated

public Date getUpdated()

hashCode

public int hashCode()
note that this ignores the create time

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
note that this ignores the serverid and create time.

Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.