Class PrometheusCaseEventListener

  • All Implemented Interfaces:
    EventListener, org.jbpm.casemgmt.api.event.CaseEventListener

    public class PrometheusCaseEventListener
    extends Object
    implements org.jbpm.casemgmt.api.event.CaseEventListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static io.prometheus.client.Summary caseDuration  
      protected static io.prometheus.client.Counter numberOfCasesStarted  
      protected static io.prometheus.client.Gauge runningCases  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterCaseCancelled​(org.jbpm.casemgmt.api.event.CaseCancelEvent event)  
      void afterCaseClosed​(org.jbpm.casemgmt.api.event.CaseCloseEvent event)  
      void afterCaseDestroyed​(org.jbpm.casemgmt.api.event.CaseDestroyEvent event)  
      void afterCaseStarted​(org.jbpm.casemgmt.api.event.CaseStartEvent event)  
      protected void endCase​(org.jbpm.casemgmt.api.event.CaseEvent event)  
      protected static void recordRunningCaseInstance​(String caseDefinitionId)  
      • Methods inherited from interface org.jbpm.casemgmt.api.event.CaseEventListener

        afterCaseCommentAdded, afterCaseCommentRemoved, afterCaseCommentUpdated, afterCaseDataAdded, afterCaseDataRemoved, afterCaseReopen, afterCaseRoleAssignmentAdded, afterCaseRoleAssignmentRemoved, afterDynamicProcessAdded, afterDynamicTaskAdded, beforeCaseCancelled, beforeCaseClosed, beforeCaseCommentAdded, beforeCaseCommentRemoved, beforeCaseCommentUpdated, beforeCaseDataAdded, beforeCaseDataRemoved, beforeCaseDestroyed, beforeCaseReopen, beforeCaseRoleAssignmentAdded, beforeCaseRoleAssignmentRemoved, beforeCaseStarted, beforeDynamicProcessAdded, beforeDynamicTaskAdded
    • Field Detail

      • numberOfCasesStarted

        protected static final io.prometheus.client.Counter numberOfCasesStarted
      • runningCases

        protected static final io.prometheus.client.Gauge runningCases
      • caseDuration

        protected static final io.prometheus.client.Summary caseDuration
    • Constructor Detail

      • PrometheusCaseEventListener

        public PrometheusCaseEventListener()
    • Method Detail

      • recordRunningCaseInstance

        protected static void recordRunningCaseInstance​(String caseDefinitionId)
      • afterCaseStarted

        public void afterCaseStarted​(org.jbpm.casemgmt.api.event.CaseStartEvent event)
        Specified by:
        afterCaseStarted in interface org.jbpm.casemgmt.api.event.CaseEventListener
      • afterCaseClosed

        public void afterCaseClosed​(org.jbpm.casemgmt.api.event.CaseCloseEvent event)
        Specified by:
        afterCaseClosed in interface org.jbpm.casemgmt.api.event.CaseEventListener
      • afterCaseDestroyed

        public void afterCaseDestroyed​(org.jbpm.casemgmt.api.event.CaseDestroyEvent event)
        Specified by:
        afterCaseDestroyed in interface org.jbpm.casemgmt.api.event.CaseEventListener
      • afterCaseCancelled

        public void afterCaseCancelled​(org.jbpm.casemgmt.api.event.CaseCancelEvent event)
        Specified by:
        afterCaseCancelled in interface org.jbpm.casemgmt.api.event.CaseEventListener
      • endCase

        protected void endCase​(org.jbpm.casemgmt.api.event.CaseEvent event)