Interface ServicesService

  • All Known Implementing Classes:
    ServicesServiceImpl

    public interface ServicesService
    API which supports the "os-services" extension.
    Author:
    Stephan Latour
    • Method Detail

      • list

        List<? extends Service> list()
        List services info

        NOTE: This is an extension and not all deployments support os-services

        Returns:
        a list of nova services
      • list

        List<? extends Service> list​(Map<String,​String> filteringParams)
        Returns list of compute services filtered by parameters.
        Parameters:
        filteringParams - map (name, value) of filtering parameters
      • enableService

        ExtService enableService​(String binary,
                                 String host)
        Enables a compute services.
        Parameters:
        binary - the name of the service binary that you want to enable
        host - the host name of the service that you want to enable
        Returns:
        the enabled service
      • disableService

        ExtService disableService​(String binary,
                                  String host)
        Disables a service.
        Parameters:
        binary - the name of the service binary that you want to disable
        host - the host name of the service that you want to disable
        Returns:
        the disabled service
      • forceDownService

        ExtService forceDownService​(String binary,
                                    String host)
        Forcefully shuts down a service.
        Parameters:
        binary - the name of the service binary that you want to shutdown
        host - the host name of the service that you want to shutdown
        Returns:
        the shutdown service
      • forceUpService

        ExtService forceUpService​(String binary,
                                  String host)
        Forcefully brings up a service.
        Parameters:
        binary - the name of the service binary that you want to bring up
        host - the host name of the service that you want to bring up
        Returns:
        the brought up service