Class StatementMetricHandle

java.lang.Object
com.espertech.esper.common.internal.metrics.stmtmetrics.StatementMetricHandle

public class StatementMetricHandle extends Object
Handle for statements metric reporting by runtime.
  • Constructor Details

    • StatementMetricHandle

      public StatementMetricHandle(int groupNum, int index)
      Ctor.
      Parameters:
      groupNum - group number, zero for default group
      index - index slot
    • StatementMetricHandle

      public StatementMetricHandle(boolean isEnabled)
  • Method Details

    • getGroupNum

      public int getGroupNum()
      Returns group number for statement.
      Returns:
      group number
    • getIndex

      public int getIndex()
      Returns slot number of metric.
      Returns:
      metric index
    • isEnabled

      public boolean isEnabled()
      Returns true if enabled for statement.
      Returns:
      enabled flag
    • setEnabled

      public void setEnabled(boolean enabled)
      Set to true if statement metric reporting is enabled, false for disabled.
      Parameters:
      enabled - flag