Class StatementMetric
java.lang.Object
com.espertech.esper.common.client.metric.MetricEvent
com.espertech.esper.common.client.metric.StatementMetric
- All Implemented Interfaces:
Serializable
Reports statement-level instrumentation values.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStatementMetric
(String runtimeURI, String deploymentId, String statementName) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCPUTime
(long delta) Adds CPU time.void
addNumInput
(long numInputAdd) Adds number of input events.void
addNumOutputIStream
(int numIStream) Adds number of output rows in insert stream.void
addNumOutputRStream
(int numRStream) Adds number of output rows in remove stream.void
addWallTime
(long wall) Adds wall time.long
Returns CPU time in nanoseconds.Returns the deployment id.long
Returns the number of input events.long
Returns number of output rows in insert stream.long
Returns number of output rows in remove stream.Returns statement name.long
Returns runtime timestamp.long
Returns wall time in nanoseconds.void
setTimestamp
(long timestamp) Sets runtime timestamp.Methods inherited from class com.espertech.esper.common.client.metric.MetricEvent
getRuntimeURI
-
Field Details
-
EPTYPE
Type information
-
-
Constructor Details
-
StatementMetric
Ctor.- Parameters:
runtimeURI
- runtime URIdeploymentId
- deployment idstatementName
- statement name
-
-
Method Details
-
getDeploymentId
Returns the deployment id.- Returns:
- deployment id
-
getStatementName
Returns statement name.- Returns:
- statement name
-
getCpuTime
public long getCpuTime()Returns CPU time in nanoseconds.- Returns:
- cpu time
-
setTimestamp
public void setTimestamp(long timestamp) Sets runtime timestamp.- Parameters:
timestamp
- to set
-
getTimestamp
public long getTimestamp()Returns runtime timestamp.- Returns:
- timestamp
-
addCPUTime
public void addCPUTime(long delta) Adds CPU time.- Parameters:
delta
- to add
-
addWallTime
public void addWallTime(long wall) Adds wall time.- Parameters:
wall
- to add
-
getWallTime
public long getWallTime()Returns wall time in nanoseconds.- Returns:
- wall time
-
getNumOutputRStream
public long getNumOutputRStream()Returns number of output rows in remove stream.- Returns:
- number of output rows in remove stream
-
getNumOutputIStream
public long getNumOutputIStream()Returns number of output rows in insert stream.- Returns:
- number of output rows in insert stream
-
addNumOutputIStream
public void addNumOutputIStream(int numIStream) Adds number of output rows in insert stream.- Parameters:
numIStream
- to add
-
addNumOutputRStream
public void addNumOutputRStream(int numRStream) Adds number of output rows in remove stream.- Parameters:
numRStream
- to add
-
getNumInput
public long getNumInput()Returns the number of input events.- Returns:
- number of input events
-
addNumInput
public void addNumInput(long numInputAdd) Adds number of input events.- Parameters:
numInputAdd
- to add
-