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, ComputeMetadataIncludingStatus<Image.Status>, Image, ResourceMetadata<ComputeType>
public class ImageImpl
- extends ComputeMetadataImpl
- implements Image
- Author:
- Adrian Cole
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface org.jclouds.compute.domain.Image |
Image.Status |
|
Constructor Summary |
ImageImpl(String providerId,
String name,
String id,
Location location,
URI uri,
Map<String,String> userMetadata,
Set<String> tags,
OperatingSystem operatingSystem,
Image.Status status,
String backendStatus,
String description,
String version,
LoginCredentials defaultCredentials)
|
ImageImpl
public ImageImpl(String providerId,
String name,
String id,
Location location,
URI uri,
Map<String,String> userMetadata,
Set<String> tags,
OperatingSystem operatingSystem,
Image.Status status,
@Nullable
String backendStatus,
String description,
@Nullable
String version,
@Nullable
LoginCredentials defaultCredentials)
getOperatingSystem
public OperatingSystem getOperatingSystem()
- The operating system installed on this image
- Specified by:
getOperatingSystem in interface Image
getStatus
public Image.Status getStatus()
- portable status of the resource
- Specified by:
getStatus in interface ComputeMetadataIncludingStatus<Image.Status>
getBackendStatus
public String getBackendStatus()
- status of the resource, as supplied literally from the backend api.
- Specified by:
getBackendStatus in interface ComputeMetadataIncludingStatus<Image.Status>
- Returns:
- status or null, if the backend api has no concept of status
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 LoginCredentials getDefaultCredentials()
- Default credentials for the current image
- Specified by:
getDefaultCredentials in interface Image
getAdminPassword
@Deprecated
public String getAdminPassword()
- Deprecated.
will be removed in jclouds 1.4.0
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.
- See Also:
LoginCredentials.shouldAuthenticateSudo()
string
protected com.google.common.base.Objects.ToStringHelper string()
- Overrides:
string in class ComputeMetadataImpl
Copyright © 2009-2012 jclouds. All Rights Reserved.