container/router/src/main/java/org/mobicents/slee/runtime/eventrouter/stats/EventRouterStatisticsImpl.java
public long getAverageEventRoutingTime(EventTypeID eventTypeID) {
		long time = 0L;
		long events = 0L;
		for (int i = 0; i < getExecutors().length; i++) {
            final EventRouterExecutorStatistics eventRouterExecutorStatistics = getEventRouterExecutorStatistics(i);
            if (eventRouterExecutorStatistics != null) {
                EventTypeRoutingStatistics eventTypeRoutingStatistics = eventRouterExecutorStatistics.getEventTypeRoutingStatistics(eventTypeID);
                if (eventTypeRoutingStatistics != null) {
                    time += eventTypeRoutingStatistics.getRoutingTime();
                    events += eventTypeRoutingStatistics.getEventsRouted();
                }
            }
		}		
		return time == 0L ? 0L : time / events;
	}
public long getAverageEventRoutingTime(EventTypeID eventTypeID) {
		long time = 0L;
		long events = 0L;
		for (int i = 0; i < getExecutors().length; i++) {
            final EventRouterExecutorStatistics eventRouterExecutorStatistics = getEventRouterExecutorStatistics(i);
            if (eventRouterExecutorStatistics != null) {
                EventTypeRoutingStatistics eventTypeRoutingStatistics = eventRouterExecutorStatistics.getEventTypeRoutingStatistics(eventTypeID);
                if (eventTypeRoutingStatistics != null) {
                    time += eventTypeRoutingStatistics.getRoutingTime();
                    events += eventTypeRoutingStatistics.getEventsRouted();
                }
            }
		}		
		return time == 0L ? 0L : time / events;
	}
public long getAverageEventRoutingTime ( EventTypeID eventTypeID ) { long time = 0L ; long events = 0L ; for ( int i = 0 ; i < getExecutors ( ) . length ; i ++ ) { final EventRouterExecutorStatistics eventRouterExecutorStatistics = getEventRouterExecutorStatistics ( i ) ; if ( eventRouterExecutorStatistics != null ) { EventTypeRoutingStatistics eventTypeRoutingStatistics = eventRouterExecutorStatistics . getEventTypeRoutingStatistics ( eventTypeID ) ; if ( eventTypeRoutingStatistics != null ) { time += eventTypeRoutingStatistics . getRoutingTime ( ) ; events += eventTypeRoutingStatistics . getEventsRouted ( ) ; } } } return time == 0L ? 0L : time / events ; }
/*
(non-Javadoc)
@see org.mobicents.slee.container.eventrouter.stats.EventRouterExecutorStatistics#getAverageEventRoutingTime(javax.slee.EventTypeID)
/ * ( non - Javadoc )