org.jclouds.compute.domain.internal
Class ComputeMetadataImpl
java.lang.Object
org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
org.jclouds.compute.domain.internal.ComputeMetadataImpl
- All Implemented Interfaces:
- Serializable, Comparable<ResourceMetadata<ComputeType>>, ComputeMetadata, ResourceMetadata<ComputeType>
- Direct Known Subclasses:
- HardwareImpl, ImageImpl, NodeMetadataImpl
public class ComputeMetadataImpl
- extends ResourceMetadataImpl<ComputeType>
- implements ComputeMetadata
- Author:
- Adrian Cole, Ivan Meredith
- See Also:
- Serialized Form
tags
protected final Set<String> tags
ComputeMetadataImpl
public ComputeMetadataImpl(ComputeType type,
String providerId,
String name,
String id,
Location location,
URI uri,
Map<String,String> userMetadata,
Set<String> tags)
getType
public ComputeType getType()
- Whether this resource is a container, file, node, queue, etc.
- Specified by:
getType
in interface ComputeMetadata
- Specified by:
getType
in interface ResourceMetadata<ComputeType>
- Returns:
- Type of the resource, ex node, image, size
getId
public 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.
- Specified by:
getId
in interface ComputeMetadata
- Returns:
- unique id within your account on the provider
getTags
public Set<String> getTags()
-
- Specified by:
getTags
in interface ComputeMetadata
- Returns:
- tags describing this resource, if supported
hashCode
public int hashCode()
- Overrides:
hashCode
in class ResourceMetadataImpl<ComputeType>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class ResourceMetadataImpl<ComputeType>
Copyright © 2009-2012 jclouds. All Rights Reserved.