Ejemplo n.º 1
0
 @Override
 public Void visitSendingExchange(Exchange exchange, Wrapper wrapper) throws RuntimeException {
   Stats stats = wrapper.getStats();
   stats.addCost(exchange.getAggregateSendCost());
   stats.addMaxWidth(exchange.getMaxSendWidth());
   return super.visitSendingExchange(exchange, wrapper);
 }
Ejemplo n.º 2
0
 @Override
 public Void visitReceivingExchange(Exchange exchange, Wrapper wrapper) throws RuntimeException {
   wrapper.getStats().addCost(exchange.getAggregateReceiveCost());
   // no traversal since it would cross fragment boundary.
   return null;
 }