Hi,

I can't reproduce that. Only reason I see would be that you are reusing a 
single event instance. You need to create a new Event instance each time. Can 
you double check? Otherwise, you might have a simple test to reproduce what you 
are observing?

Thanks,

Matthieu




On Jun 25, 2013, at 08:40 , baojian Zhou <baojian.zhou.b...@gmail.com> wrote:

> hi all,
> i tested the events processing time during the runtime in the application. 
> and the events' starttime(such as :event.getTime()) always the same. why? i 
> can sure the events  injectorred from the source is different every time.
> here is the onEvent()method in SimplePE.class
> 
> long value = event.get("value", long.class);
>               final long eventTime = event.getTime();
>               logger.trace(String.valueOf(value));
>               Metrics.newGauge(SimplePE1.class, "event-runTime-" + 
> super.getName(),// class name Gauge
>                               new Gauge<BigDecimal>() {
>                                       @Override
>                                       public BigDecimal value() {
>                                               return new BigDecimal( 
> eventTime); 
>                                       }
>                               }); 

Reply via email to