org.camunda.bpm.cockpit.impl
Class DefaultCockpitRuntimeDelegate

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate<CockpitPlugin>
      extended by 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 and CommandExecutor).

Author:
roman.smirnov, nico.rehwaldt

Field Summary
 
Fields inherited from class org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate
pluginRegistry, processEngineProvider, resourceOverrides
 
Constructor Summary
DefaultCockpitRuntimeDelegate()
           
 
Method Summary
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.
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 configured QueryService 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
 

Constructor Detail

DefaultCockpitRuntimeDelegate

public DefaultCockpitRuntimeDelegate()
Method Detail

getQueryService

public QueryService getQueryService(String processEngineName)
Description copied from interface: CockpitRuntimeDelegate
Returns a configured QueryService to execute custom statements to the corresponding process engine.

Specified by:
getQueryService in interface CockpitRuntimeDelegate
Returns:
a QueryService

getCommandExecutor

public CommandExecutor getCommandExecutor(String processEngineName)
Description copied from interface: CockpitRuntimeDelegate
Returns a configured CommandExecutor to execute commands to the corresponding process engine.

Specified by:
getCommandExecutor in interface CockpitRuntimeDelegate
Returns:
a CommandExecutor

getPluginRegistry

@Deprecated
public PluginRegistry getPluginRegistry()
Deprecated. 

Deprecated: use AbstractAppRuntimeDelegate.getAppPluginRegistry()

Specified by:
getPluginRegistry in interface CockpitRuntimeDelegate
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:


Copyright © 2018 camunda services GmbH. All rights reserved.