Interface ServiceManagerService

  • All Superinterfaces:
    RestService
    All Known Implementing Classes:
    ServiceManagerServiceImpl

    public interface ServiceManagerService
    extends RestService
    Manages OpenStack service(s), such as Compute (Nova), Object Storage (Swift), or Image Service (Glance).
    Author:
    Jeremy Unruh
    • Method Detail

      • list

        List<? extends Service> list()
        List current Services on the OpenStack System
        Returns:
        the list
      • get

        Service get​(String serviceId)
        Gets the specified Service by it's identifier
        Parameters:
        serviceId - the service id
        Returns:
        the service
      • create

        Service create​(String name,
                       String type,
                       String description)
        Creates a new Service
        Parameters:
        name - the name of the service
        type - the type of service
        description - the description for the service
        Returns:
        the service created
      • delete

        ActionResponse delete​(String serviceId)
        Deletes a Service based on it's id
        Parameters:
        serviceId - the service id
        Returns:
        the action response
      • listEndpoints

        List<? extends ServiceEndpoint> listEndpoints()
        Queries for service related Endpoints (endpoints mapped against services)
        Returns:
        List of ServiceEndpoint(s)
      • createEndpoint

        ServiceEndpoint createEndpoint​(String region,
                                       String serviceId,
                                       String publicURL,
                                       String adminURL,
                                       String internalURL)
        Creates a new Endpoint associated to a service identifier
        Parameters:
        region - the endpoint region
        serviceId - the service identifier the endpoint is associated with
        publicURL - the public URL
        adminURL - the admin URL
        internalURL - the internal URL
        Returns:
        the create service endpoint
      • deleteEndpoint

        ActionResponse deleteEndpoint​(String endpointId)
        Deletes an Endpoint
        Parameters:
        endpointId - the endpoint identifier
        Returns:
        the action response