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)
CockpitRuntimeDelegate
QueryService
to execute custom
statements to the corresponding process engine.getQueryService
in interface CockpitRuntimeDelegate
QueryService
public CommandExecutor getCommandExecutor(String processEngineName)
CockpitRuntimeDelegate
CommandExecutor
to execute
commands to the corresponding process engine.getCommandExecutor
in interface CockpitRuntimeDelegate
CommandExecutor
public PluginRegistry getPluginRegistry()
CockpitRuntimeDelegate
getPluginRegistry
in interface CockpitRuntimeDelegate
public ProcessEngine getProcessEngine(String processEngineName)
CockpitRuntimeDelegate
ProcessEngine
to the assigned
processEngineName
getProcessEngine
in interface CockpitRuntimeDelegate
ProcessEngine
public Set<String> getProcessEngineNames()
CockpitRuntimeDelegate
ProcessEngine
names available to the runtimegetProcessEngineNames
in interface CockpitRuntimeDelegate
public ProcessEngine getDefaultProcessEngine()
CockpitRuntimeDelegate
ProcessEngine
provided by thegetDefaultProcessEngine
in interface CockpitRuntimeDelegate
protected List<String> getMappingFiles()
protected CommandExecutor createCommandExecutor(String processEngineName)
processEngineName
- protected ProcessEngineProvider loadProcessEngineProvider()
ProcessEngineProvider
spi implementation.Copyright © 2015. All rights reserved.