org.jclouds.compute.domain.internal
Class ComputeMetadataImpl

java.lang.Object
  extended by org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
      extended by 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

Constructor Summary
ComputeMetadataImpl(ComputeType type, String providerId, String name, String id, Location location, URI uri, Map<String,String> userMetadata)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          A means to uniquely address this resource within a provider.
 ComputeType getType()
          Type of the resource, ex node, image, size
 int hashCode()
           
 
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
compareTo, getLocation, getName, getProviderId, getUri, getUserMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.compute.domain.ComputeMetadata
getName, getProviderId
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation, getUri, getUserMetadata
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ComputeMetadataImpl

public ComputeMetadataImpl(ComputeType type,
                           String providerId,
                           String name,
                           String id,
                           Location location,
                           URI uri,
                           Map<String,String> userMetadata)
Method Detail

getType

public ComputeType getType()
Type of the resource, ex node, image, size

Specified by:
getType in interface ComputeMetadata
Specified by:
getType in interface ResourceMetadata<ComputeType>

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

hashCode

public int hashCode()
Overrides:
hashCode in class ResourceMetadataImpl<ComputeType>

equals

public boolean equals(Object obj)
Overrides:
equals in class ResourceMetadataImpl<ComputeType>


Copyright © 2009-2011 jclouds. All Rights Reserved.