org.jclouds.compute.domain
Interface ComputeMetadata

All Superinterfaces:
Comparable<ResourceMetadata<ComputeType>>, ResourceMetadata<ComputeType>
All Known Subinterfaces:
Hardware, Image, NodeMetadata
All Known Implementing Classes:
ComputeMetadataImpl, HardwareImpl, ImageImpl, NodeMetadataImpl

public interface ComputeMetadata
extends ResourceMetadata<ComputeType>

Author:
Ivan Meredith, Adrian Cole

Method Summary
 String getId()
          A means to uniquely address this resource within a provider.
 String getName()
          Name of this resource.
 String getProviderId()
          Unique identifier of this resource within its enclosing namespace.
 Set<String> getTags()
           
 ComputeType getType()
          Whether this resource is a container, file, node, queue, etc.
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation, getUri, getUserMetadata
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getType

ComputeType getType()
Description copied from interface: ResourceMetadata
Whether this resource is a container, file, node, queue, etc.

Specified by:
getType in interface ResourceMetadata<ComputeType>
Returns:
Type of the resource, ex node, image, size

getProviderId

String getProviderId()
Description copied from interface: ResourceMetadata
Unique identifier of this resource within its enclosing namespace. In some scenarios, this id is not user assignable. For files, this may be an system generated key, or the full path to the resource. ex. /path/to/file.txt

Specified by:
getProviderId in interface ResourceMetadata<ComputeType>
Returns:
id of the server within the naming scope it was created. potentially generated by the service.

getName

@Nullable
String getName()
Description copied from interface: ResourceMetadata
Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt

Specified by:
getName in interface ResourceMetadata<ComputeType>
Returns:
user defined name of the server.

getId

String getId()
A means to uniquely address this resource within a provider. For example, if the namespace of a node or image is region based, the id will likely include both the region and the provider-supplied id encoded to avoid collisions.

Returns:
unique id within your account on the provider

getTags

Set<String> getTags()
Returns:
tags describing this resource, if supported


Copyright © 2009-2012 jclouds. All Rights Reserved.