01: package org.jacorb.transport;
02:
03: import org.jacorb.orb.giop.StatisticsProvider;
04:
05: public class DefaultStatisticsProvider implements StatisticsProvider {
06:
07: public final long created_ = System.currentTimeMillis();
08: public long messages_sent_ = 0;
09: public long messages_received_ = 0;
10: public long bytes_sent_ = 0;
11: public long bytes_received_ = 0;
12:
13: public void messageChunkSent(int size) {
14: bytes_sent_ += size;
15: }
16:
17: public void flushed() {
18: messages_sent_++;
19: }
20:
21: public void messageReceived(int size) {
22: messages_received_++;
23: bytes_received_ += size;
24: }
25:
26: }
|