org.jclouds.loadbalancer.domain.internal
Class LoadBalancerMetadataImpl

java.lang.Object
  extended by org.jclouds.domain.internal.ResourceMetadataImpl<LoadBalancerType>
      extended by org.jclouds.loadbalancer.domain.internal.LoadBalancerMetadataImpl
All Implemented Interfaces:
Serializable, Comparable<ResourceMetadata<LoadBalancerType>>, ResourceMetadata<LoadBalancerType>, LoadBalancerMetadata

public class LoadBalancerMetadataImpl
extends ResourceMetadataImpl<LoadBalancerType>
implements LoadBalancerMetadata

Author:
Adrian Cole
See Also:
Serialized Form

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

Constructor Detail

LoadBalancerMetadataImpl

public LoadBalancerMetadataImpl(LoadBalancerType type,
                                String providerId,
                                String name,
                                String id,
                                Location location,
                                URI uri,
                                Map<String,String> userMetadata,
                                Iterable<String> addresses)
Method Detail

getType

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

Specified by:
getType in interface ResourceMetadata<LoadBalancerType>
Specified by:
getType in interface LoadBalancerMetadata

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 LoadBalancerMetadata

getAddresses

public Set<String> getAddresses()

Specified by:
getAddresses in interface LoadBalancerMetadata
Returns:
DNS Name of the load balancer; note we don't use InetAddress, as it is incompatible with google appengine.

hashCode

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

toString

public String toString()
Overrides:
toString in class ResourceMetadataImpl<LoadBalancerType>

equals

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


Copyright © 2009-2012 jclouds. All Rights Reserved.