Class FlowableProfiler

java.lang.Object
org.flowable.engine.test.profiler.FlowableProfiler
All Implemented Interfaces:
EngineConfigurator

public class FlowableProfiler extends Object implements EngineConfigurator
Author:
Joram Barrez
  • Field Details

  • Constructor Details

    • FlowableProfiler

      public FlowableProfiler()
  • Method Details

    • getInstance

      public static FlowableProfiler getInstance()
    • beforeInit

      public void beforeInit(AbstractEngineConfiguration engineConfiguration)
      Description copied from interface: EngineConfigurator
      Called before any initialisation has been done. This can for example be useful to change configuration settings before anything that uses those properties is created. Allows to tweak the engine by passing the AbstractEngineConfiguration which allows tweaking it programmatically. An example is the jdbc url. When a EngineConfigurator instance wants to change it, it needs to do it in this method, or otherwise the datasource would already have been created with the 'old' value for the jdbc url.
      Specified by:
      beforeInit in interface EngineConfigurator
    • configure

      public void configure(AbstractEngineConfiguration engineConfiguration)
      Description copied from interface: EngineConfigurator
      Called when the engine boots up, before it is usable, but after the initialisation of internal objects is done. Allows to tweak the engine by passing the AbstractEngineConfiguration which allows tweaking it programmatically. An example is the ldap user/group manager, which is an addition to the engine. No default properties need to be overridden for this (otherwise the EngineConfigurator.beforeInit(AbstractEngineConfiguration) method should be used) so the logic contained in this method is executed after initialisation of the default objects. Probably a better name would be 'afterInit' (cfr EngineConfigurator.beforeInit(AbstractEngineConfiguration)), but not possible due to backwards compatibility.
      Specified by:
      configure in interface EngineConfigurator
    • getPriority

      public int getPriority()
      Description copied from interface: EngineConfigurator
      When the EngineConfigurator instances are used, they are first ordered by this priority number (lowest to highest). If you have dependencies between EngineConfigurator instances, use the priorities accordingly to order them as needed.
      Specified by:
      getPriority in interface EngineConfigurator
    • reset

      public void reset()
    • startProfileSession

      public void startProfileSession(String name)
    • stopCurrentProfileSession

      public void stopCurrentProfileSession()
    • getCurrentProfileSession

      public ProfileSession getCurrentProfileSession()
    • setCurrentProfileSession

      public void setCurrentProfileSession(ProfileSession currentProfileSession)
    • getProfileSessions

      public List<ProfileSession> getProfileSessions()
    • setProfileSessions

      public void setProfileSessions(List<ProfileSession> profileSessions)