public void addProducerCall ( String producerId , long duration ) { AnalyzedProducerCallsAO bean = beans . get ( producerId ) ; if ( bean == null ) { bean = new AnalyzedProducerCallsAO ( producerId ) ; beans . put ( producerId , bean ) ; } bean . addCall ( duration ) ; totalCalls ++ ; totalDuration += duration ; }
Adds a new producer call . The duration and the number of calls for each producer will be increased accordingly .