public long getAverageEventRoutingTime() {
		long time = 0L;
		long events = 0L;
		for (EventTypeID eventTypeID : eventRouter.getSleeContainer().getComponentManagement().getComponentRepository().getEventComponentIDs()) {
			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() {
		long time = 0L;
		long events = 0L;
		for (EventTypeID eventTypeID : eventRouter.getSleeContainer().getComponentManagement().getComponentRepository().getEventComponentIDs()) {
			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 ( ) { long time = 0L ; long events = 0L ; for ( EventTypeID eventTypeID : eventRouter . getSleeContainer ( ) . getComponentManagement ( ) . getComponentRepository ( ) . getEventComponentIDs ( ) ) { 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()
/ * ( non - Javadoc )