Class ServicesServiceImpl

    • Constructor Detail

      • ServicesServiceImpl

        public ServicesServiceImpl()
    • Method Detail

      • list

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

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

        Specified by:
        list in interface ServicesService
        Returns:
        a list of nova services
      • list

        public List<? extends Service> list​(Map<String,​String> filteringParams)
        Returns list of compute services filtered by parameters.

        Author:Wang Ting/王婷

        Specified by:
        list in interface ServicesService
        Parameters:
        filteringParams - map (name, value) of filtering parameters
        See Also:
        org.openstack4j.api.compute.ServicesService#list(java.util.Map)
      • enableService

        public ExtService enableService​(String binary,
                                        String host)
        Enables a compute services.

        Author:Wang Ting/王婷

        Specified by:
        enableService in interface ServicesService
        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
        See Also:
        org.openstack4j.api.compute.ServicesService#enableService(java.lang.String, java.lang.String)
      • disableService

        public ExtService disableService​(String binary,
                                         String host)
        Disables a compute service.

        Author:Wang Ting/王婷

        Specified by:
        disableService in interface ServicesService
        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
        See Also:
        org.openstack4j.api.compute.ServicesService#disableService(java.lang.String, java.lang.String)
      • forceDownService

        public ExtService forceDownService​(String binary,
                                           String host)
        Forcefully shuts down a service.
        Specified by:
        forceDownService in interface ServicesService
        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

        public ExtService forceUpService​(String binary,
                                         String host)
        Forcefully brings up a service.
        Specified by:
        forceUpService in interface ServicesService
        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