Class ServiceManagerServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v2.internal.ServiceManagerServiceImpl
-
- All Implemented Interfaces:
ServiceManagerService,RestService
public class ServiceManagerServiceImpl extends BaseOpenStackService implements ServiceManagerService
Manages OpenStack service(s), such as Compute (Nova), Object Storage (Swift), or Image Service (Glance).- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ServiceManagerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Servicecreate(String name, String type, String description)Creates a new ServiceServiceEndpointcreateEndpoint(String region, String serviceId, String publicURL, String adminURL, String internalURL)Creates a new Endpoint associated to a service identifierActionResponsedelete(String serviceId)Deletes a Service based on it's idActionResponsedeleteEndpoint(String endpointId)Deletes an EndpointServiceget(String serviceId)Gets the specified Service by it's identifierList<? extends Service>list()List current Services on the OpenStack SystemList<? extends ServiceEndpoint>listEndpoints()Queries for service related Endpoints (endpoints mapped against services)-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Service> list()
List current Services on the OpenStack System- Specified by:
listin interfaceServiceManagerService- Returns:
- the list extends service>
-
get
public Service get(String serviceId)
Gets the specified Service by it's identifier- Specified by:
getin interfaceServiceManagerService- Parameters:
serviceId- the service id- Returns:
- the service
-
create
public Service create(String name, String type, String description)
Creates a new Service- Specified by:
createin interfaceServiceManagerService- Parameters:
name- the name of the servicetype- the type of servicedescription- the description for the service- Returns:
- the service created
-
delete
public ActionResponse delete(String serviceId)
Deletes a Service based on it's id- Specified by:
deletein interfaceServiceManagerService- Parameters:
serviceId- the service id- Returns:
- the action response
-
listEndpoints
public List<? extends ServiceEndpoint> listEndpoints()
Queries for service related Endpoints (endpoints mapped against services)- Specified by:
listEndpointsin interfaceServiceManagerService- Returns:
- List of ServiceEndpoint(s)
-
createEndpoint
public ServiceEndpoint createEndpoint(String region, String serviceId, String publicURL, String adminURL, String internalURL)
Creates a new Endpoint associated to a service identifier- Specified by:
createEndpointin interfaceServiceManagerService- Parameters:
region- the endpoint regionserviceId- the service identifier the endpoint is associated withpublicURL- the public URLadminURL- the admin URLinternalURL- the internal URL- Returns:
- the create service endpoint
-
deleteEndpoint
public ActionResponse deleteEndpoint(String endpointId)
Deletes an Endpoint- Specified by:
deleteEndpointin interfaceServiceManagerService- Parameters:
endpointId- the endpoint identifier- Returns:
- the action response
-
-