Interface RuntimeProvisioningServiceBackend
-
public interface RuntimeProvisioningServiceBackendRuntime 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroyRuntime(String runtimeId, boolean forced)Destroy an existing RuntimeList<RuntimeQueryResultItem>executeQuery(RuntimeQuery query)Executes a query against the runtime system.List<org.guvnor.ala.runtime.providers.Provider>getProviders(Integer page, Integer pageSize, String sort, boolean sortOrder)Get all the registered ProvidersList<org.guvnor.ala.runtime.providers.ProviderType>getProviderTypes(Integer page, Integer pageSize, String sort, boolean sortOrder)Get all the registered ProviderTypesList<org.guvnor.ala.runtime.Runtime>getRuntimes(Integer page, Integer pageSize, String sort, boolean sortOrder)Get All RuntimesStringnewRuntime(org.guvnor.ala.config.RuntimeConfig conf)Create a new RuntimevoidregisterProvider(org.guvnor.ala.config.ProviderConfig conf)Register a new ProvidervoidrestartRuntime(String runtimeId)Restart a given RuntimevoidstartRuntime(String runtimeId)Start a given RuntimevoidstopRuntime(String runtimeId)Stop a given RuntimevoidunregisterProvider(String name)Unregister an existing Provider
-
-
-
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
-
getProviders
List<org.guvnor.ala.runtime.providers.Provider> getProviders(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException
Get all the registered Providers- Returns:
- a list containing all the registered providers
- Throws:
BusinessException
-
registerProvider
void registerProvider(org.guvnor.ala.config.ProviderConfig conf) throws BusinessExceptionRegister a new Provider- Parameters:
conf- a ProviderConfig to use for creating the Provider- Throws:
BusinessException
-
unregisterProvider
void unregisterProvider(String name) throws BusinessException
Unregister an existing Provider- Parameters:
name- a provider name- 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 destroyforced- 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
-
getRuntimes
List<org.guvnor.ala.runtime.Runtime> getRuntimes(Integer page, Integer pageSize, String sort, boolean sortOrder) throws BusinessException
Get All Runtimes- Returns:
- a list containing all the registered Runtimes
- Throws:
BusinessException
-
startRuntime
void startRuntime(String runtimeId) throws BusinessException
Start a given Runtime- Parameters:
runtimeId- the identifier of the runtime to be started- Throws:
BusinessException
-
stopRuntime
void stopRuntime(String runtimeId) throws BusinessException
Stop a given Runtime- Parameters:
runtimeId- the identifier of the runtime to be stopped- 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
-
executeQuery
List<RuntimeQueryResultItem> executeQuery(RuntimeQuery query) throws BusinessException
Executes a query against the runtime system.- Parameters:
query- a runtime query to execute.- Returns:
- a list of runtime query result items that fulfils the query parameters.
- Throws:
BusinessException- in case of an internal exception
-
-