1 20 package org.apache.mina.management; 21 22 import org.apache.mina.common.IoSession; 23 24 36 public class IoSessionStat { 37 long lastByteRead = -1; 38 39 long lastByteWrite = -1; 40 41 long lastMessageRead = -1; 42 43 long lastMessageWrite = -1; 44 45 float byteWrittenThroughput = 0; 46 47 float byteReadThroughput = 0; 48 49 float messageWrittenThroughput = 0; 50 51 float messageReadThroughput = 0; 52 53 long lastPollingTime = System.currentTimeMillis(); 55 56 60 public float getByteReadThroughput() { 61 return byteReadThroughput; 62 } 63 64 68 public float getByteWrittenThroughput() { 69 return byteWrittenThroughput; 70 } 71 72 76 public float getMessageReadThroughput() { 77 return messageReadThroughput; 78 } 79 80 84 public float getMessageWrittenThroughput() { 85 return messageWrittenThroughput; 86 } 87 88 91 long getLastByteRead() { 92 return lastByteRead; 93 } 94 95 98 long getLastByteWrite() { 99 return lastByteWrite; 100 } 101 102 105 long getLastMessageRead() { 106 return lastMessageRead; 107 } 108 109 112 long getLastMessageWrite() { 113 return lastMessageWrite; 114 } 115 } | Popular Tags |