org.jclouds.openstack.keystone.v2_0.domain
Class Service
java.lang.Object
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:
type
protected final String type
name
protected final String name
endpoints
protected final Set<Endpoint> endpoints
Service
public Service(String type,
String name,
Set<Endpoint> endpoints)
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.