incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baojian Zhou <baojian.zhou.b...@gmail.com>
Subject about an event's runtime
Date Tue, 25 Jun 2013 06:40:02 GMT
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);
 }
});

Mime
View raw message