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:
Comparable<org.jclouds.domain.ResourceMetadata<ComputeType>>, ComputeMetadata, org.jclouds.domain.ResourceMetadata<ComputeType>
Direct Known Subclasses:
HardwareImpl, ImageImpl, NodeMetadataImpl, SecurityGroup

public class ComputeMetadataImpl
extends org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
implements ComputeMetadata


Field Summary
protected  Set<String> tags
           
 
Constructor Summary
ComputeMetadataImpl(ComputeType type, String providerId, String name, String id, org.jclouds.domain.Location location, URI uri, Map<String,String> userMetadata, Set<String> tags)
           
 
Method Summary
protected  com.google.common.base.Objects.ToStringHelper addComputeToStringSuffix(com.google.common.base.Objects.ToStringHelper helper)
           
 int compareTo(org.jclouds.domain.ResourceMetadata<ComputeType> that)
          
protected  com.google.common.base.Objects.ToStringHelper computeToStringPrefix()
           
 boolean equals(Object o)
           
 String getId()
          A means to uniquely address this resource within a provider.
 Set<String> getTags()
          
 ComputeType getType()
          
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
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
 

Field Detail

tags

protected final Set<String> tags
Constructor Detail

ComputeMetadataImpl

public ComputeMetadataImpl(ComputeType type,
                           String providerId,
                           String name,
                           String id,
                           org.jclouds.domain.Location location,
                           URI uri,
                           Map<String,String> userMetadata,
                           Set<String> tags)
Method Detail

getType

public ComputeType getType()

Specified by:
getType in interface ComputeMetadata
Specified by:
getType in interface org.jclouds.domain.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

compareTo

public int compareTo(org.jclouds.domain.ResourceMetadata<ComputeType> that)

Specified by:
compareTo in interface Comparable<org.jclouds.domain.ResourceMetadata<ComputeType>>
Overrides:
compareTo in class org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>

equals

public boolean equals(Object o)
Overrides:
equals in class org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>

hashCode

public int hashCode()
Overrides:
hashCode in class org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>

computeToStringPrefix

protected com.google.common.base.Objects.ToStringHelper computeToStringPrefix()

addComputeToStringSuffix

protected com.google.common.base.Objects.ToStringHelper addComputeToStringSuffix(com.google.common.base.Objects.ToStringHelper helper)

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.