Class StatementMetricHandle
java.lang.Object
com.espertech.esper.common.internal.metrics.stmtmetrics.StatementMetricHandle
Handle for statements metric reporting by runtime.
-
Constructor Summary
ConstructorDescriptionStatementMetricHandle
(boolean isEnabled) StatementMetricHandle
(int groupNum, int index) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns group number for statement.int
getIndex()
Returns slot number of metric.boolean
Returns true if enabled for statement.void
setEnabled
(boolean enabled) Set to true if statement metric reporting is enabled, false for disabled.
-
Constructor Details
-
StatementMetricHandle
public StatementMetricHandle(int groupNum, int index) Ctor.- Parameters:
groupNum
- group number, zero for default groupindex
- 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
-