Interface RuntimeProvisioningServiceBackend


  • public interface RuntimeProvisioningServiceBackend
    Runtime Provisioning Service Backend interface. It allows the registering and interaction with different Provisioning Providers and the creation of new Runtimes on these providers. Backend @Remote implementation to be used in CDI environments with Errai
    • Method Detail

      • getProviderTypes

        List<org.guvnor.ala.runtime.providers.ProviderType> getProviderTypes​(Integer page,
                                                                             Integer pageSize,
                                                                             String sort,
                                                                             boolean sortOrder)
                                                                      throws BusinessException
        Get all the registered ProviderTypes
        Returns:
        a list containing all the registered provider types
        Throws:
        BusinessException
      • registerProvider

        void registerProvider​(org.guvnor.ala.config.ProviderConfig conf)
                       throws BusinessException
        Register a new Provider
        Parameters:
        conf - a ProviderConfig to use for creating the Provider
        Throws:
        BusinessException
      • newRuntime

        String newRuntime​(org.guvnor.ala.config.RuntimeConfig conf)
                   throws BusinessException
        Create a new Runtime
        Parameters:
        conf - a RuntimeConfig containing the configuration used to create the new Runtime
        Throws:
        BusinessException
      • destroyRuntime

        void destroyRuntime​(String runtimeId,
                            boolean forced)
                     throws BusinessException
        Destroy an existing Runtime
        Parameters:
        runtimeId - the identifier of the runtime to destroy
        forced - indicates if the runtime must be deleted from the guvnor-ala registries independently of the connectivity with the external provider. e.g. if it was not possible to connect an external WF where the runtime is running.
        Throws:
        BusinessException
      • restartRuntime

        void restartRuntime​(String runtimeId)
                     throws BusinessException
        Restart a given Runtime
        Parameters:
        runtimeId - the identifier of the runtime to be restarted
        Throws:
        BusinessException