|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.metric.MetricScheduleService
public final class MetricScheduleService
Scheduling for metrics execution is handles=d by this service.
Constructor Summary | |
---|---|
MetricScheduleService()
Constructor. |
Method Summary | |
---|---|
void |
add(long afterMSec,
MetricExec execution)
Adds an execution to the schedule. |
void |
clear()
Clears the schedule. |
void |
evaluate(java.util.Collection<MetricExec> handles)
Evaluate the schedule and populates executions, if any. |
long |
getCurrentTime()
Returns current time for metrics reporting. |
java.lang.Long |
getNearestTime()
Returns nearest scheduled time. |
void |
remove(MetricExec metricExec)
Remove from schedule an execution. |
void |
setTime(long currentTime)
Sets current time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetricScheduleService()
Method Detail |
---|
public long getCurrentTime()
MetricTimeSource
getCurrentTime
in interface MetricTimeSource
public void clear()
public final void setTime(long currentTime)
currentTime
- to setpublic final void add(long afterMSec, MetricExec execution)
afterMSec
- offset to add atexecution
- execution to addpublic final void evaluate(java.util.Collection<MetricExec> handles)
handles
- to populatepublic java.lang.Long getNearestTime()
public void remove(MetricExec metricExec)
metricExec
- to remove
|
© 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 |