org.jclouds.compute.domain.internal
Class ImageImpl
java.lang.Object
  
org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
      
org.jclouds.compute.domain.internal.ComputeMetadataImpl
          
org.jclouds.compute.domain.internal.ImageImpl
- All Implemented Interfaces: 
 - Serializable, Comparable<ResourceMetadata<ComputeType>>, ComputeMetadata, Image, ResourceMetadata<ComputeType>
 
public class ImageImpl
- extends ComputeMetadataImpl
- implements Image
  
- Author:
 
  - Adrian Cole
 
- See Also:
 - Serialized Form
 
| 
Constructor Summary | 
ImageImpl(String providerId,
          String name,
          String id,
          Location location,
          URI uri,
          Map<String,String> userMetadata,
          OperatingSystem operatingSystem,
          String description,
          String version,
          String adminPassword,
          Credentials defaultCredentials)
 
            | 
 
 
 
 
 
 
 
 
ImageImpl
public ImageImpl(String providerId,
                 String name,
                 String id,
                 Location location,
                 URI uri,
                 Map<String,String> userMetadata,
                 OperatingSystem operatingSystem,
                 String description,
                 @Nullable
                 String version,
                 @Nullable
                 String adminPassword,
                 @Nullable
                 Credentials defaultCredentials)
getOperatingSystem
public OperatingSystem getOperatingSystem()
- The operating system installed on this image
- Specified by:
 getOperatingSystem in interface Image
 
 
 
getVersion
public String getVersion()
- Version of the image
- Specified by:
 getVersion in interface Image
 
 
 
getDescription
public String getDescription()
- Description of the image.
- Specified by:
 getDescription in interface Image
 
 
 
getDefaultCredentials
public Credentials getDefaultCredentials()
- Default credentials for the current image
- Specified by:
 getDefaultCredentials in interface Image
 
 
 
getAdminPassword
public String getAdminPassword()
- secures access to root with a password. This password is required to access either the console
 or run sudo as root.
 
 ex. 
echo 'password' |sudo -S command
- Specified by:
 getAdminPassword in interface Image
 
- Returns:
 - root or console password, if configured, or null.
 
 
 
toString
public String toString()
- Overrides:
 toString in class ResourceMetadataImpl<ComputeType>
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class ComputeMetadataImpl
 
 
equals
public boolean equals(Object obj)
- Overrides:
 equals in class ComputeMetadataImpl
 
 
Copyright © 2009-2011 jclouds. All Rights Reserved.