public void readPacket(PacketInfo info) {
            if (info.packetCode() == Packet.PCODE_REQUEST) {
                readRequestCount++;
            } else if (info.packetCode() == Packet.PCODE_REPLY) {
                readReplyCount++;
            } else if (info.packetCode() == Packet.PCODE_ERROR) {
                readErrorCount++;
            }
            readBytes += info.packetLength();
            super.readPacket(info);
        }
Supervisor extension with some extra statistics used for
testing.
jrt/tests/com/yahoo/jrt/Test.java