Package org.camunda.bpm.cockpit.impl
Class DefaultCockpitRuntimeDelegate
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate<CockpitPlugin>
-
- org.camunda.bpm.cockpit.impl.DefaultCockpitRuntimeDelegate
-
- All Implemented Interfaces:
CockpitRuntimeDelegate
,AppRuntimeDelegate<CockpitPlugin>
public class DefaultCockpitRuntimeDelegate extends AbstractAppRuntimeDelegate<CockpitPlugin> implements CockpitRuntimeDelegate
This is the default
CockpitRuntimeDelegate
implementation that provides the camunda cockpit plugin services (i.e.QueryService
andCommandExecutor
).- Author:
- roman.smirnov, nico.rehwaldt
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate
pluginRegistry, processEngineProvider, resourceOverrides
-
-
Constructor Summary
Constructors Constructor Description DefaultCockpitRuntimeDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected CommandExecutor
createCommandExecutor(String processEngineName)
Create command executor for the engine with the given nameCommandExecutor
getCommandExecutor(String processEngineName)
Returns a configuredCommandExecutor
to execute commands to the corresponding process engine.protected List<String>
getMappingFiles()
Returns the list of mapping files that should be used to create the session factory for this runtime.PluginRegistry
getPluginRegistry()
Deprecated.QueryService
getQueryService(String processEngineName)
Returns a configuredQueryService
to execute custom statements to the corresponding process engine.-
Methods inherited from class org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate
getAppPluginRegistry, getDefaultProcessEngine, getProcessEngine, getProcessEngineNames, getResourceOverrides, initResourceOverrides, loadProcessEngineProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.webapp.AppRuntimeDelegate
getAppPluginRegistry, getDefaultProcessEngine, getProcessEngine, getProcessEngineNames, getResourceOverrides
-
-
-
-
Method Detail
-
getQueryService
public QueryService getQueryService(String processEngineName)
Description copied from interface:CockpitRuntimeDelegate
Returns a configuredQueryService
to execute custom statements to the corresponding process engine.- Specified by:
getQueryService
in interfaceCockpitRuntimeDelegate
- Returns:
- a
QueryService
-
getCommandExecutor
public CommandExecutor getCommandExecutor(String processEngineName)
Description copied from interface:CockpitRuntimeDelegate
Returns a configuredCommandExecutor
to execute commands to the corresponding process engine.- Specified by:
getCommandExecutor
in interfaceCockpitRuntimeDelegate
- Returns:
- a
CommandExecutor
-
getPluginRegistry
@Deprecated public PluginRegistry getPluginRegistry()
Deprecated.Deprecated: useAbstractAppRuntimeDelegate.getAppPluginRegistry()
- Specified by:
getPluginRegistry
in interfaceCockpitRuntimeDelegate
- Returns:
-
getMappingFiles
protected List<String> getMappingFiles()
Returns the list of mapping files that should be used to create the session factory for this runtime.- Returns:
-
createCommandExecutor
protected CommandExecutor createCommandExecutor(String processEngineName)
Create command executor for the engine with the given name- Parameters:
processEngineName
-- Returns:
-
-