Class StatementMetric

java.lang.Object
com.espertech.esper.common.client.metric.MetricEvent
com.espertech.esper.common.client.metric.StatementMetric
All Implemented Interfaces:
Serializable

public class StatementMetric extends MetricEvent
Reports statement-level instrumentation values.
See Also:
  • Field Details

    • EPTYPE

      public static final EPTypeClass EPTYPE
      Type information
  • Constructor Details

    • StatementMetric

      public StatementMetric(String runtimeURI, String deploymentId, String statementName)
      Ctor.
      Parameters:
      runtimeURI - runtime URI
      deploymentId - deployment id
      statementName - statement name
  • Method Details

    • getDeploymentId

      public String getDeploymentId()
      Returns the deployment id.
      Returns:
      deployment id
    • getStatementName

      public String 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