Class RuntimeProvisioningServiceBackendImpl

  • All Implemented Interfaces:
    org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend

    @ApplicationScoped
    public class RuntimeProvisioningServiceBackendImpl
    extends Object
    implements org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
    • Constructor Detail

      • RuntimeProvisioningServiceBackendImpl

        public RuntimeProvisioningServiceBackendImpl()
      • RuntimeProvisioningServiceBackendImpl

        @Inject
        public RuntimeProvisioningServiceBackendImpl​(org.guvnor.ala.services.api.RuntimeProvisioningService runtimeProvisioningService)
    • Method Detail

      • getProviderTypes

        public List<org.guvnor.ala.runtime.providers.ProviderType> getProviderTypes​(Integer page,
                                                                                    Integer pageSize,
                                                                                    String sort,
                                                                                    boolean sortOrder)
                                                                             throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        getProviderTypes in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • getProviders

        public List<org.guvnor.ala.runtime.providers.Provider> getProviders​(Integer page,
                                                                            Integer pageSize,
                                                                            String sort,
                                                                            boolean sortOrder)
                                                                     throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        getProviders in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • getRuntimes

        public List<org.guvnor.ala.runtime.Runtime> getRuntimes​(Integer page,
                                                                Integer pageSize,
                                                                String sort,
                                                                boolean sortOrder)
                                                         throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        getRuntimes in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • registerProvider

        public void registerProvider​(org.guvnor.ala.config.ProviderConfig conf)
                              throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        registerProvider in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • unregisterProvider

        public void unregisterProvider​(String name)
                                throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        unregisterProvider in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • newRuntime

        public String newRuntime​(org.guvnor.ala.config.RuntimeConfig conf)
                          throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        newRuntime in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • destroyRuntime

        public void destroyRuntime​(String runtimeId,
                                   boolean forced)
                            throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        destroyRuntime in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • startRuntime

        public void startRuntime​(String runtimeId)
                          throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        startRuntime in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • stopRuntime

        public void stopRuntime​(String runtimeId)
                         throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        stopRuntime in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • restartRuntime

        public void restartRuntime​(String runtimeId)
                            throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        restartRuntime in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException
      • executeQuery

        public List<org.guvnor.ala.services.api.RuntimeQueryResultItem> executeQuery​(org.guvnor.ala.services.api.RuntimeQuery query)
                                                                              throws org.guvnor.ala.services.exceptions.BusinessException
        Specified by:
        executeQuery in interface org.guvnor.ala.services.api.backend.RuntimeProvisioningServiceBackend
        Throws:
        org.guvnor.ala.services.exceptions.BusinessException