public class DefaultRuntimeDelegate extends Object implements CockpitRuntimeDelegate
This is the default CockpitRuntimeDelegate implementation that provides
the camunda cockpit plugin services (i.e. QueryService and
CommandExecutor).
| Constructor and Description |
|---|
DefaultRuntimeDelegate() |
| Modifier and Type | Method and Description |
|---|---|
protected CommandExecutor |
createCommandExecutor(String processEngineName)
Create command executor for the engine with the given name
|
CommandExecutor |
getCommandExecutor(String processEngineName)
Returns a configured
CommandExecutor to execute
commands to the corresponding process engine. |
ProcessEngine |
getDefaultProcessEngine()
Returns the default
ProcessEngine provided by the |
protected List<String> |
getMappingFiles()
Returns the list of mapping files that should be used to create the
session factory for this runtime.
|
PluginRegistry |
getPluginRegistry()
A registry that provides access to the plugins registered
in the application.
|
ProcessEngine |
getProcessEngine(String processEngineName)
Returns a
ProcessEngine to the assigned
processEngineName |
Set<String> |
getProcessEngineNames()
Returns the list of
ProcessEngine names available to the runtime |
QueryService |
getQueryService(String processEngineName)
Returns a configured
QueryService to execute custom
statements to the corresponding process engine. |
protected ProcessEngineProvider |
loadProcessEngineProvider()
Load the
ProcessEngineProvider spi implementation. |
public QueryService getQueryService(String processEngineName)
CockpitRuntimeDelegateQueryService to execute custom
statements to the corresponding process engine.getQueryService in interface CockpitRuntimeDelegateQueryServicepublic CommandExecutor getCommandExecutor(String processEngineName)
CockpitRuntimeDelegateCommandExecutor to execute
commands to the corresponding process engine.getCommandExecutor in interface CockpitRuntimeDelegateCommandExecutorpublic PluginRegistry getPluginRegistry()
CockpitRuntimeDelegategetPluginRegistry in interface CockpitRuntimeDelegatepublic ProcessEngine getProcessEngine(String processEngineName)
CockpitRuntimeDelegateProcessEngine to the assigned
processEngineNamegetProcessEngine in interface CockpitRuntimeDelegateProcessEnginepublic Set<String> getProcessEngineNames()
CockpitRuntimeDelegateProcessEngine names available to the runtimegetProcessEngineNames in interface CockpitRuntimeDelegatepublic ProcessEngine getDefaultProcessEngine()
CockpitRuntimeDelegateProcessEngine provided by thegetDefaultProcessEngine in interface CockpitRuntimeDelegateprotected List<String> getMappingFiles()
protected CommandExecutor createCommandExecutor(String processEngineName)
processEngineName - protected ProcessEngineProvider loadProcessEngineProvider()
ProcessEngineProvider spi implementation.Copyright © 2015. All rights reserved.