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

java.lang.Object
  extended by org.jclouds.openstack.keystone.v2_0.domain.Service
All Implemented Interfaces:
Comparable<Service>

public class Service
extends Object
implements Comparable<Service>

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
           
 
Field Summary
protected  Set<Endpoint> endpoints
           
protected  String name
           
protected  String type
           
 
Constructor Summary
Service(String type, String name, Set<Endpoint> endpoints)
           
 
Method Summary
static Service.Builder builder()
           
 int compareTo(Service that)
           
 boolean equals(Object object)
           
 Set<Endpoint> getEndpoints()
           
 String getName()
           
 String getType()
          such as compute (Nova), object-store (Swift), or image (Glance)
 int hashCode()
           
 Service.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected final String type

name

protected final String name

endpoints

protected final Set<Endpoint> endpoints
Constructor Detail

Service

public 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

getEndpoints

public Set<Endpoint> getEndpoints()
Returns:
the endpoints assigned to the service

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Service that)
Specified by:
compareTo in interface Comparable<Service>


Copyright © 2009-2012 jclouds. All Rights Reserved.