org.jclouds.openstack.keystone.v2_0.domain
Class Service

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingCollection<E>
          extended by com.google.common.collect.ForwardingSet<Endpoint>
              extended by org.jclouds.openstack.keystone.v2_0.domain.Service
All Implemented Interfaces:
Iterable<Endpoint>, Collection<Endpoint>, Set<Endpoint>

public class Service
extends com.google.common.collect.ForwardingSet<Endpoint>

An OpenStack service, such as Compute (Nova), Object Storage (Swift), or Image Service (Glance). A service provides one or more endpoints through which users can access resources and perform (presumably useful) operations.

Author:
Adrian Cole
See Also:

Nested Class Summary
static class Service.Builder<T extends Service.Builder<T>>
           
 
Constructor Summary
protected Service(String type, String name, Set<Endpoint> endpoints)
           
 
Method Summary
static Service.Builder<?> builder()
           
protected  Set<Endpoint> delegate()
           
 boolean equals(Object obj)
           
 String getName()
           
 String getType()
          such as compute (Nova), object-store (Swift), or image (Glance)
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Service.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class com.google.common.collect.ForwardingSet
standardEquals, standardHashCode, standardRemoveAll
 
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

Service

@ConstructorProperties(value={"type","name","endpoints"})
protected Service(String type,
                                             String name,
                                             Set<Endpoint> endpoints)
Method Detail

builder

public static Service.Builder<?> builder()

toBuilder

public Service.Builder<?> toBuilder()

getType

public String getType()
such as compute (Nova), object-store (Swift), or image (Glance)

Returns:
the type of the service in the current OpenStack deployment

getName

public String getName()
Returns:
the name of the service

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Endpoint>
Specified by:
hashCode in interface Set<Endpoint>
Overrides:
hashCode in class com.google.common.collect.ForwardingSet<Endpoint>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<Endpoint>
Specified by:
equals in interface Set<Endpoint>
Overrides:
equals in class com.google.common.collect.ForwardingSet<Endpoint>

string

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

toString

public String toString()
Overrides:
toString in class com.google.common.collect.ForwardingObject

delegate

protected Set<Endpoint> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingSet<Endpoint>


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