java.lang.Object
com.espertech.esper.common.internal.metrics.audit.AuditPath

public class AuditPath extends Object
Global boolean for enabling and disable audit path reporting.
  • Field Details

    • QUERYPLAN_LOG

      public static final String QUERYPLAN_LOG
      Logger destination for the query plan logging.
      See Also:
    • JDBC_LOG

      public static final String JDBC_LOG
      Logger destination for the JDBC logging.
      See Also:
    • AUDIT_LOG

      public static final String AUDIT_LOG
      Logger destination for the audit logging.
      See Also:
    • LOCK_LOG

      public static final String LOCK_LOG
      Logger destination for the Lock activity logging.
      See Also:
    • isAuditEnabled

      public static boolean isAuditEnabled
      Public access.
  • Constructor Details

    • AuditPath

      public AuditPath()
  • Method Details

    • setAuditPattern

      public static void setAuditPattern(String auditPattern)
    • auditInsert

      public static void auditInsert(EventBean theEvent, ExprEvaluatorContext exprEvaluatorContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      theEvent - event
      exprEvaluatorContext - ctx
    • auditView

      public static void auditView(EventBean[] newData, EventBean[] oldData, ExprEvaluatorContext context, ViewFactory viewFactory)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      newData - new events
      oldData - old events
      context - context
      viewFactory - view factory
    • auditStream

      public static void auditStream(EventBean event, ExprEvaluatorContext context, String filterText)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      event - event
      context - context
      filterText - text for filter
    • auditStream

      public static void auditStream(EventBean[] newData, EventBean[] oldData, ExprEvaluatorContext context, String filterText)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      newData - new data
      oldData - old data
      context - context
      filterText - text for filter
    • auditScheduleAdd

      public static void auditScheduleAdd(long nextScheduledTime, AgentInstanceContext agentInstanceContext, ScheduleHandle scheduleHandle, ScheduleObjectType objectType, String name)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      nextScheduledTime - time
      agentInstanceContext - ctx
      scheduleHandle - handle
      name - name
      objectType - object type
    • auditScheduleRemove

      public static void auditScheduleRemove(AgentInstanceContext agentInstanceContext, ScheduleHandle scheduleHandle, ScheduleObjectType objectType, String name)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      agentInstanceContext - ctx
      scheduleHandle - handle
      name - name
      objectType - object type
    • auditScheduleFire

      public static void auditScheduleFire(AgentInstanceContext agentInstanceContext, ScheduleObjectType objectType, String name)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      agentInstanceContext - ctx
      objectType - object type
      name - name
    • auditProperty

      public static void auditProperty(String name, Object value, ExprEvaluatorContext exprEvaluatorContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      name - name
      value - value
      exprEvaluatorContext - ctx
    • auditExpression

      public static void auditExpression(String text, Object value, ExprEvaluatorContext exprEvaluatorContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      text - name
      value - value
      exprEvaluatorContext - ctx
    • auditPatternTrue

      public static void auditPatternTrue(EvalFactoryNode factoryNode, Object from, MatchedEventMapMinimal matchEvent, boolean isQuitted, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      factoryNode - factory
      from - from
      matchEvent - state
      isQuitted - quitted-flag
      agentInstanceContext - ctx
    • auditPatternFalse

      public static void auditPatternFalse(EvalFactoryNode factoryNode, Object from, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      factoryNode - factory
      from - from
      agentInstanceContext - ctx
    • auditExprDef

      public static void auditExprDef(String name, Object value, ExprEvaluatorContext exprEvaluatorContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      name - name
      value - value
      exprEvaluatorContext - ctx
    • auditPatternInstance

      public static void auditPatternInstance(boolean increase, EvalFactoryNode factoryNode, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      increase - flag whether plus one or minus one
      factoryNode - factory
      agentInstanceContext - ctx
    • auditDataflowTransition

      public static void auditDataflowTransition(String dataflowName, String dataFlowInstanceId, EPDataFlowState state, EPDataFlowState newState, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      dataflowName - name
      dataFlowInstanceId - id
      state - old state
      newState - new state
      agentInstanceContext - ctx
    • auditDataflowSource

      public static void auditDataflowSource(String dataflowName, String dataFlowInstanceId, String operatorName, int operatorNumber, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      dataflowName - name
      dataFlowInstanceId - id
      operatorName - name of op
      operatorNumber - num of op
      agentInstanceContext - ctx
    • auditDataflowOp

      public static void auditDataflowOp(String dataflowName, String dataFlowInstanceId, String operatorName, int operatorNumber, Object[] params, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      dataflowName - name
      dataFlowInstanceId - id
      operatorName - name of op
      operatorNumber - num of op
      agentInstanceContext - ctx
      params - params
    • auditContextPartition

      public static void auditContextPartition(boolean allocate, AgentInstanceContext agentInstanceContext)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      allocate - allocate
      agentInstanceContext - ctx
    • isInfoEnabled

      public static boolean isInfoEnabled()
    • setAuditCallback

      public static void setAuditCallback(AuditCallback auditCallback)
    • getAuditCallback

      public static AuditCallback getAuditCallback()