|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.metric.MetricReportingServiceImpl
public class MetricReportingServiceImpl
Metrics reporting.
Reports for all statements even if not in a statement group, i.e. statement in default group.
Constructor Summary | |
---|---|
MetricReportingServiceImpl(ConfigurationMetricsReporting specification,
java.lang.String engineUri)
Ctor. |
Method Summary | |
---|---|
void |
accountOutput(StatementMetricHandle handle,
int numIStream,
int numRStream)
Account for statement output row counting. |
void |
accountTime(StatementMetricHandle metricsHandle,
long deltaCPU,
long deltaWall,
int numInputEvents)
Account for statement CPU and wall time. |
void |
addStatementResultListener(StatementResultListener listener)
Add stmt result listener. |
void |
destroy()
Destroy the service. |
StatementMetricHandle |
getStatementHandle(java.lang.String statementId,
java.lang.String statementName)
Returns for a new statement a handle for later accounting. |
java.util.concurrent.CopyOnWriteArraySet<StatementResultListener> |
getStatementOutputHooks()
Returns output hooks. |
void |
observe(StatementLifecycleEvent theEvent)
Observer statement state changes. |
void |
processTimeEvent(long timeEventTime)
Indicates current engine time. |
void |
removeStatementResultListener(StatementResultListener listener)
Remove stmt result listener. |
void |
route(MetricEvent metricEvent)
Process metric event. |
void |
setContext(EPRuntime runtime,
EPServicesContext servicesContext)
Sets runtime and services. |
void |
setMetricsReportingDisabled()
Disables metrics reporting globally. |
void |
setMetricsReportingEnabled()
Enables metrics reporting globally. |
void |
setMetricsReportingInterval(java.lang.String stmtGroupName,
long newInterval)
Change the reporting interval for the given statement group name. |
void |
setMetricsReportingStmtDisabled(java.lang.String statementName)
Disable metrics reporting for statement. |
void |
setMetricsReportingStmtEnabled(java.lang.String statementName)
Enable metrics reporting for statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricReportingServiceImpl(ConfigurationMetricsReporting specification, java.lang.String engineUri)
specification
- configurationengineUri
- engine URIMethod Detail |
---|
public void addStatementResultListener(StatementResultListener listener)
MetricReportingServiceSPI
addStatementResultListener
in interface MetricReportingServiceSPI
listener
- to addpublic void removeStatementResultListener(StatementResultListener listener)
MetricReportingServiceSPI
removeStatementResultListener
in interface MetricReportingServiceSPI
listener
- to removepublic java.util.concurrent.CopyOnWriteArraySet<StatementResultListener> getStatementOutputHooks()
MetricReportingServiceSPI
getStatementOutputHooks
in interface MetricReportingServiceSPI
public void setContext(EPRuntime runtime, EPServicesContext servicesContext)
MetricReportingService
setContext
in interface MetricReportingService
runtime
- runtimeservicesContext
- servicespublic void processTimeEvent(long timeEventTime)
MetricReportingService
processTimeEvent
in interface MetricReportingService
timeEventTime
- engine timepublic void destroy()
MetricReportingService
destroy
in interface MetricReportingService
public void route(MetricEvent metricEvent)
MetricEventRouter
route
in interface MetricEventRouter
metricEvent
- metric event to processpublic void accountTime(StatementMetricHandle metricsHandle, long deltaCPU, long deltaWall, int numInputEvents)
MetricReportingService
accountTime
in interface MetricReportingService
metricsHandle
- statement handledeltaCPU
- cpu time nsecdeltaWall
- wall time nsecpublic void accountOutput(StatementMetricHandle handle, int numIStream, int numRStream)
MetricReportingService
accountOutput
in interface MetricReportingService
handle
- statement handlenumIStream
- number of insert stream rowsnumRStream
- number of remove stream rowspublic StatementMetricHandle getStatementHandle(java.lang.String statementId, java.lang.String statementName)
MetricReportingService
getStatementHandle
in interface MetricReportingService
statementId
- statement idstatementName
- statement name
public void observe(StatementLifecycleEvent theEvent)
StatementLifecycleObserver
observe
in interface StatementLifecycleObserver
theEvent
- indicates statement changedpublic void setMetricsReportingInterval(java.lang.String stmtGroupName, long newInterval)
MetricReportingService
setMetricsReportingInterval
in interface MetricReportingService
stmtGroupName
- group namenewInterval
- new interval, or zero or negative value to disable reportingpublic void setMetricsReportingStmtDisabled(java.lang.String statementName) throws ConfigurationException
MetricReportingService
setMetricsReportingStmtDisabled
in interface MetricReportingService
statementName
- statement name
ConfigurationException
public void setMetricsReportingStmtEnabled(java.lang.String statementName) throws ConfigurationException
MetricReportingService
setMetricsReportingStmtEnabled
in interface MetricReportingService
statementName
- statement name
ConfigurationException
public void setMetricsReportingEnabled()
MetricReportingService
setMetricsReportingEnabled
in interface MetricReportingService
public void setMetricsReportingDisabled()
MetricReportingService
setMetricsReportingDisabled
in interface MetricReportingService
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |